int (PsiFile psiFile) { int count = 0; if (psiFile != null) { if (myTodoFilter != null) { for (Iterator i = myTodoFilter.iterator(); i.hasNext(); ) { TodoPattern pattern = (TodoPattern)i.next(); count += getSearchHelper().getTodoItemsCount(psiFile, pattern); } } else { count = getSearchHelper().getTodoItemsCount(psiFile); } } return count; }