private static FormatProcessor buildProcessorAndWrapBlocks(final FormattingDocumentModel docModel,
                                                             Block rootBlock,
                                                             CodeStyleSettings settings,
                                                             CommonCodeStyleSettings.IndentOptions indentOptions,
                                                             @Nullable FormatTextRanges affectedRanges,
                                                             int interestingOffset)
  {
    FormatOptions options = new FormatOptions(settings, indentOptions, affectedRanges, interestingOffset);
    FormatProcessor processor = new FormatProcessor(
      docModel, rootBlock, options, FormattingProgressCallback.EMPTY
    );
    //noinspection StatementWithEmptyBody
    while (!processor.iteration()) ;
    return processor;
  }
private static FormatProcessor buildProcessorAndWrapBlocks(final FormattingDocumentModel docModel,
                                                             Block rootBlock,
                                                             CodeStyleSettings settings,
                                                             CommonCodeStyleSettings.IndentOptions indentOptions,
                                                             @Nullable FormatTextRanges affectedRanges,
                                                             int interestingOffset)