int (ToDoSummary summary) { int count = 0; for (Iterator i = myBuilder.getAllFiles(); i.hasNext();) { PsiFile psiFile = (PsiFile)i.next(); if (psiFile == null) { // skip invalid PSI files continue; } if (getTreeStructure().accept(psiFile)) { count++; } } return count; }