FixHolder (@NotNull Project project, @NotNull MavenProject mavenProject, boolean targetVersion) { MavenDomProjectModel model = MavenDomUtil.getMavenDomProjectModel(project, mavenProject.getFile()); if (model == null) return null; if (containCompilerPluginSource(model)) { return new FixHolder(true, targetVersion, mavenProject, project); } else if (containPropertySource(model)) { return new FixHolder(false, targetVersion, mavenProject, project); } else if (mavenProject.getParentId() == null) { return new FixHolder(false, targetVersion, mavenProject, project); } mavenProject = getParentMavenProject(project, mavenProject); model = MavenDomUtil.getMavenDomProjectModel(project, mavenProject.getFile()); if (model == null) return null; return containCompilerPluginSource(model) ? new FixHolder(true, targetVersion, mavenProject, project) : new FixHolder(false, targetVersion, mavenProject, project); }