List<VirtualFile> (@NotNull Project project) { List<VirtualFile> files = new ArrayList<>(); TodoCacheManager.getInstance(project).processFilesWithTodoItems(psi -> { files.add(psi.getVirtualFile()); return true; }); return files; }