MavenJavaVersionHolder (@NotNull MavenProject mavenProject) { boolean useReleaseCompilerProp = isReleaseCompilerProp(mavenProject); LanguageLevel sourceVersion = getMavenLanguageLevel(mavenProject, useReleaseCompilerProp, true, false); LanguageLevel sourceTestVersion = getMavenLanguageLevel(mavenProject, useReleaseCompilerProp, true, true); LanguageLevel targetVersion = getMavenLanguageLevel(mavenProject, useReleaseCompilerProp, false, false); LanguageLevel targetTestVersion = getMavenLanguageLevel(mavenProject, useReleaseCompilerProp, false, true); return new MavenJavaVersionHolder(sourceVersion, targetVersion, sourceTestVersion, targetTestVersion); }