void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().SPACE_WITHIN_BRACES = true; String before = """ if (2 > 3) { System.out.println("AA!"); } else { int a = 3; }"""; String afterNextLineOption = """ if (2 > 3) { System.out.println("AA!"); } else { int a = 3; }"""; getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE; doMethodTest(before, afterNextLineOption); getSettings().BRACE_STYLE = CommonCodeStyleSettings.END_OF_LINE; doMethodTest(before, before); }