void () { getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; getSettings().BRACE_STYLE = CommonCodeStyleSettings.NEXT_LINE; String before = """ switch (timeUnit) { case DAYS: break; default: break; }"""; String endOfLine = """ switch (timeUnit) { case DAYS: break; default: break; }"""; String nextLine = """ switch (timeUnit) { case DAYS: break; default: break; }"""; String nextLineShifted = """ switch (timeUnit) { case DAYS: break; default: break; }"""; String nextLineShiftedEach = """ switch (timeUnit) { case DAYS: break; default: break; }"""; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, endOfLine, nextLine, nextLineShifted, nextLineShiftedEach); }