AbstractLayoutCodeProcessor (@Nullable AbstractLayoutCodeProcessor processor) { ReformatCodeProcessor reformatCodeProcessor; if (processor != null) { if (myProcessSelectedText) { reformatCodeProcessor = new ReformatCodeProcessor(processor, myEditor.getSelectionModel()); } else { reformatCodeProcessor = new ReformatCodeProcessor(processor, myProcessChangesTextOnly); } } else { if (myProcessSelectedText) { reformatCodeProcessor = new ReformatCodeProcessor(myFile, myEditor.getSelectionModel()); } else { reformatCodeProcessor = new ReformatCodeProcessor(myFile, myProcessChangesTextOnly); } } if (myOptions.doNotKeepLineBreaks()) { reformatCodeProcessor.setDoNotKeepLineBreaks(myFile); } return reformatCodeProcessor; }