void (MavenProject mavenProject, PairConsumer<String, JpsModuleSourceRootType<?>> result) { MavenPlugin plugin = mavenProject.findPlugin(myPluginGroupID, myPluginArtifactID); if (plugin != null) { GroovyPluginConfigurator.Companion.collectGroovyFolders(plugin, true).forEach(path -> { result.consume(path, JavaSourceRootType.SOURCE); }); GroovyPluginConfigurator.Companion.collectGroovyFolders(plugin, false).forEach(path -> { result.consume(path, JavaSourceRootType.TEST_SOURCE); }); } }