boolean (@NotNull Language myLanguage, @NotNull Language childLanguage, @NotNull PsiElement childPsi) { if (myLanguage == childLanguage || childLanguage == HtmlFileType.INSTANCE.getLanguage() || childLanguage == XHtmlFileType.INSTANCE.getLanguage() || childLanguage == XmlFileType.INSTANCE.getLanguage()) { return true; } final FormattingModelBuilder childFormatter = LanguageFormatting.INSTANCE.forLanguage(childLanguage); return childFormatter == null || childFormatter instanceof DelegatingFormattingModelBuilder && ((DelegatingFormattingModelBuilder)childFormatter).dontFormatMyModel(childPsi); }