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