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