boolean (@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); }