void (@NotNull final Project project, @NotNull final VirtualFile root, @NotNull final List<String> results) { final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex(); VfsUtilCore.visitChildrenRecursively(root, new VirtualFileVisitor<Void>() { @Override public boolean visitFile(@NotNull VirtualFile file) { if (file.equals(root)) { return true; } if (!fileIndex.isExcluded(file) && file.isDirectory() && file.findChild(PyNames.INIT_DOT_PY) != null) { results.add(VfsUtilCore.getRelativePath(file, root, '.')); return true; } return false; } }); }