void () { String before = "try {} catch (Exception e) { System.out.println(\"AA!\"); }"; String after = "try {} catch (Exception e) {System.out.println(\"AA!\");}"; String afterExpanded = """ try { } catch (Exception e) { System.out.println("AA!"); }"""; doMethodTest(before, afterExpanded); getSettings().KEEP_SIMPLE_BLOCKS_IN_ONE_LINE = true; checkFormatterWithDifferentBraceStyles(before, after, after, after, after); }