void () { String before = """ while (true) { System.out.println("AAA"); }"""; String endOfLine = """ while (true) { System.out.println("AAA"); }"""; String nextLine = """ while (true) { System.out.println("AAA"); }"""; String nextLineShifted = """ while (true) { System.out.println("AAA"); }"""; String nextLineShiftedEach = """ while (true) { System.out.println("AAA"); }"""; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); }