boolean (MavenProject project, MavenJavaVersionHolder mavenJavaVersions) { if (!Registry.is("maven.import.separate.main.and.test.modules.when.needed")) return false; return !project.isAggregator() && mavenJavaVersions.needSeparateTestModule() && isCompilerTestSupport(project); }