@Override
  protected void runLiveTemplate(@NotNull Document document,
                                 @NotNull MavenDomProjectModel model,
                                 @NotNull LanguageLevel level) {
    XmlTag tag = model.getProperties().ensureTagExists();
    String option = JpsJavaSdkType.complianceOption(level.toJavaVersion());
    tag.findFirstSubTag(MAVEN_COMPILER_SOURCE);
    String prevTargetValue = setChildTagIfAbsent(tag, MAVEN_COMPILER_TARGET, option);
    String targetValue = Optional.ofNullable(tag.findFirstSubTag(MAVEN_COMPILER_SOURCE))
      .map(sourceTag -> sourceTag.getValue())
      .map(t -> t.getText())
      .orElse(option);

    PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document);
    FileDocumentManager.getInstance().saveDocument(document);

    tag = model.getProperties().ensureTagExists();
    Template template = getTemplate(tag, prevTargetValue, targetValue);
    runTemplate(template, tag);
  }
@Override
  protected void runLiveTemplate(@NotNull Document document,
                                 @NotNull MavenDomProjectModel model,
                                 @NotNull LanguageLevel level)