void () { String testName = getTestName(true); myFixture.configureByFile(BASE_PATH + testName + ".java"); CommonCodeStyleSettings javaSettings = CodeStyle.getSettings(myFixture.getEditor()).getCommonSettings(JavaLanguage.INSTANCE); javaSettings.getIndentOptions().INDENT_SIZE = 2; javaSettings.getIndentOptions().CONTINUATION_INDENT_SIZE = 2; javaSettings.ALIGN_MULTILINE_BINARY_OPERATION = false; LayoutCodeOptions options = new LayoutCodeOptions() { @Override public TextRangeType getTextRangeType() { return TextRangeType.WHOLE_FILE; } @Override public boolean isOptimizeImports() { return false; } @Override public boolean isRearrangeCode() { return false; } }; FileInEditorProcessor processor = new FileInEditorProcessor(myFixture.getFile(), myFixture.getEditor(), options); processor.processCode(); EditorTestUtil.performTypingAction(myFixture.getEditor(), '\n'); myFixture.checkResultByFile(BASE_PATH + testName + "_after.java"); }