void () { getSettings().KEEP_SIMPLE_METHODS_IN_ONE_LINE = true; getSettings().RIGHT_MARGIN = 90; getSettings().SPACE_WITHIN_BRACES = true; String text = """ public class Repr2 { public void start() { System.out.println("kfjsdkfjsdkfjskdjfslkdjfklsdjfklsdjfksjdfkljsdkfjsd!"); } }"""; doTextTest(text, text); }