void () { String before = """ for (int i = 0; i < 10; i = i + 3) { System.out.println("AAA!"); } """; String endOfLine = """ for (int i = 0; i < 10; i = i + 3) { System.out.println("AAA!"); } """; String nextLine = """ for (int i = 0; i < 10; i = i + 3) { System.out.println("AAA!"); } """; String nextLineShifted = """ for (int i = 0; i < 10; i = i + 3) { System.out.println("AAA!"); } """; String nextLineShiftedEach = """ for (int i = 0; i < 10; i = i + 3) { System.out.println("AAA!"); } """; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); }