List<TodoItem> (@NotNull PsiFile psiFile, boolean isLight) { if (!isLight) ApplicationManager.getApplication().assertReadAccessAllowed(); PsiTodoSearchHelper searchHelper = PsiTodoSearchHelper.getInstance(myProject); TodoItem[] todoItems = isLight ? searchHelper.findTodoItemsLight(psiFile) : searchHelper.findTodoItems(psiFile); return applyFilterAndRemoveDuplicatesAndSort(todoItems, myTodoFilter); }