int (final ToDoSummary val) { int count = 0; for(final Iterator<PsiFile> i=myBuilder.getAllFiles();i.hasNext();){ count += ReadAction.compute(() -> getTreeStructure().getTodoItemCount(i.next())); } return count; }