void () { // Inspired by IDEA-54747 getSettings().BLANK_LINES_BEFORE_METHOD_BODY = 3; doTextTest( """ public class FormattingTest { public void foo() { System.out.println(""); try { } catch (Exception e) { } } }""", """ public class FormattingTest { public void foo() { System.out.println(""); try { } catch (Exception e) { } } }""" ); }