@Override
    public int getTodoItemsCount(@NotNull PsiFile file, @NotNull TodoPattern pattern) {
      final TodoFilter filter = new TodoFilter();
      filter.addTodoPattern(pattern);
      return findPatternedTodoItems(file, filter).length;
    }
@Override
    public int getTodoItemsCount(@NotNull PsiFile file, @NotNull TodoPattern pattern)