FormatProcessor () { FormatOptions options = new FormatOptions(settings, indentOptions, affectedRanges); FormatProcessor processor = new FormatProcessor( model.getDocumentModel(), model.getRootBlock(), options, getProgressCallback() ); processor.format(model, true); return processor; }