@Override
  public @NotNull FormattingModel createModel(@NotNull FormattingContext formattingContext) {
    final ASTNode root = TreeUtil.getFileElement((TreeElement)SourceTreeToPsiMap.psiElementToTree(formattingContext.getPsiElement()));
    PsiFile containingFile = formattingContext.getContainingFile();
    final FormattingDocumentModelImpl documentModel = FormattingDocumentModelImpl.createOn(containingFile);
    return new XmlFormattingModel(containingFile, createBlock(formattingContext.getCodeStyleSettings(), root, documentModel),
                                  documentModel);
  }
@Override
  public @NotNull FormattingModel createModel(@NotNull FormattingContext formattingContext)