int (final Module val) { Iterator<PsiFile> iterator = myBuilder.getFiles(val); int count = 0; while (iterator.hasNext()) { final PsiFile psiFile = iterator.next(); count += ReadAction.compute(() -> getTreeStructure().getTodoItemCount(psiFile)); } return count; }