protected static XmlFormattingPolicy getPolicy(CodeStyleSettings settings, PsiFile psiFile) {
    final FormattingDocumentModelImpl documentModel = FormattingDocumentModelImpl.createOn(psiFile);
    return new HtmlPolicy(settings, documentModel);
  }
protected static XmlFormattingPolicy getPolicy(CodeStyleSettings settings, PsiFile psiFile)