void (@NotNull PsiFile psiFile, @NotNull StringBuilder output, @NotNull TextRange hostTextRange) { FormattingModelBuilder builder = LanguageFormatting.INSTANCE.forContext(psiFile); if (builder == null) { LOG.warn("no formatting model found for file: " + psiFile.getName()); return; } output.append("> "); output.append(hostTextRange); output.append("\n"); FormattingModel model = CoreFormatterUtil.buildModel(builder, psiFile, CodeStyle.getSettings(psiFile), FormattingMode.REFORMAT); FormattingModelDumper.dumpFormattingModel(model.getRootBlock(), 0, output); output.append("\n\n"); }