void (@NotNull AnActionEvent e) { Project project = e.getProject(); if (project == null) return; Set<String> excludeRoots = new HashSet<>(); for (Module module : ModuleManager.getInstance(project).getModules()) { Collections.addAll(excludeRoots, ModuleRootManager.getInstance(module).getExcludeRootUrls()); } for (DirectoryIndexExcludePolicy policy : DirectoryIndexExcludePolicy.EP_NAME.getExtensions(project)) { ContainerUtil.addAll(excludeRoots, policy.getExcludeUrlsForProject()); } if (excludeRoots.isEmpty()) { System.out.println("No excluded roots found in project."); } for (String root : excludeRoots) { VirtualFile file = VirtualFileManager.getInstance().findFileByUrl(root); if (file == null) { System.out.println(root + " not in VFS"); continue; } dumpChildrenInDbRecursively(file, 0); } }