private static boolean containCompilerPluginSource(@NotNull MavenDomProjectModel model) {
    return Optional.ofNullable(MavenProjectModelModifier.findCompilerPlugin(model))
      .map(p -> p.getConfiguration())
      .map(c -> c.getXmlTag())
      .map(tag -> tag.findFirstSubTag(LanguageLevelPluginQuickFix.COMPILER_SOURCE) != null)
      .orElse(false);
  }
private static boolean containCompilerPluginSource(@NotNull MavenDomProjectModel model)