void (final HashSet<String> seenNames, final PsiManager manager, final VirtualFile folder) { VfsUtilCore.visitChildrenRecursively(folder, new VirtualFileVisitor<Void>() { @Override public boolean visitFile(@NotNull VirtualFile file) { ProgressIndicatorProvider.checkCanceled(); if (myExcludedFolders.contains(file)) { return false; } if (!file.isDirectory()) { final PsiFile psiFile = manager.findFile(file); if (psiFile != null) { processFile(psiFile, seenNames); } } return true; } }); }