boolean (@NotNull RootsSelection selection, @NotNull Module module) { ModuleFileIndex index = ModuleRootManager.getInstance(module).getFileIndex(); return selection.mySelectedDirectories.stream().allMatch(file -> index.isInContent(file)); }