boolean (@NotNull RootsSelection selection, @NotNull Module module) { for (SourceFolder root : selection.mySelectedRoots) { JavaSourceRootProperties properties = root.getJpsElement().getProperties(JavaModuleSourceRootTypes.SOURCES); if (properties != null && properties.isForGeneratedSources()) { return true; } } return false; }