private static void dumpModelForFile(@NotNull PsiFile psiFile, @NotNull StringBuilder output, @NotNull TextRange hostTextRange) {
    FormattingModelBuilder builder = LanguageFormatting.INSTANCE.forContext(psiFile);
    if (builder == null) {
      Logger.getInstance(DumpFormattingModelAction.class).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");
  }
private static void dumpModelForFile(@NotNull PsiFile psiFile, @NotNull StringBuilder output, @NotNull TextRange hostTextRange)