void () { getSettings().SPACE_WITHIN_BRACES = true; String before = "while (true) { System.out.println(\"AAA\"); }"; String after = "while (true) { System.out.println(\"AAA\"); }"; getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, after, after, after, after); }