boolean (@NotNull PsiFile psiFile) { PsiTodoSearchHelper searchHelper = getSearchHelper(); return myTodoFilter != null && myTodoFilter.accept(searchHelper, psiFile) || (myTodoFilter == null && searchHelper.getTodoItemsCount(psiFile) > 0); }