StandardMavenModuleType (MavenProject project, MavenJavaVersionHolder mavenJavaVersions) { if (needSplitMainAndTest(project, mavenJavaVersions)) { return StandardMavenModuleType.COMPOUND_MODULE; } else if (project.isAggregator()) { return StandardMavenModuleType.AGGREGATOR; } else { return StandardMavenModuleType.SINGLE_MODULE; } }