void (@NotNull SourceFolder folder, boolean generated) { JpsModuleSourceRoot jpsElement = folder.getJpsElement(); JavaSourceRootProperties properties = jpsElement.getProperties(JavaModuleSourceRootTypes.SOURCES); if (properties != null) properties.setForGeneratedSources(generated); }