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