void () { // Inspired by IDEA-19328 getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().IF_BRACE_FORCE = CommonCodeStyleSettings.FORCE_BRACES_ALWAYS; getSettings().SPACE_WITHIN_BRACES = true; doMethodTest( "if (x > y) System.out.println(\"foo!\");", "if (x > y) { System.out.println(\"foo!\"); }" ); }