void () { getSettings().KEEP_MULTIPLE_EXPRESSIONS_IN_ONE_LINE = true; getSettings().KEEP_LINE_BREAKS = false; String before = """ public class Reproduce { public void start() { if (true) return; // comment final int count = 5; for (int i = 0; i < count; i++) { System.out.println("AAA!"); System.out.println("BBB!"); // ololol System.out.println("asda"); /* ololo */ System.out.println("booo"); } } }"""; String after = """ public class Reproduce { public void start() { if (true) return; // comment final int count = 5; for (int i = 0; i < count; i++) { System.out.println("AAA!"); System.out.println("BBB!"); // ololol System.out.println("asda"); /* ololo */ System.out.println("booo"); } } }"""; doTextTest(before, after); }