void (@NotNull Document document, @NotNull MavenDomProjectModel model, @NotNull LanguageLevel level) { XmlTag tag = model.getProperties().ensureTagExists(); String option = JpsJavaSdkType.complianceOption(level.toJavaVersion()); String prevSourceValue = setChildTagIfAbsent(tag, MAVEN_COMPILER_SOURCE, option); String prevTargetValue = setChildTagIfAbsent(tag, MAVEN_COMPILER_TARGET, option); PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document); FileDocumentManager.getInstance().saveDocument(document); tag = model.getProperties().ensureTagExists(); Template template = getTemplate(tag, prevSourceValue, prevTargetValue, option); runTemplate(template, tag); }