void () { // Inspired by IDEA-54746 getSettings().BLANK_LINES_AFTER_CLASS_HEADER = 2; getSettings().BLANK_LINES_AFTER_ANONYMOUS_CLASS_HEADER = 1; doTextTest( """ public class FormattingTest { public void foo() { Object buzz = new Object() { Object test = new Object(); }; } }""", """ public class FormattingTest { public void foo() { Object buzz = new Object() { Object test = new Object(); }; } }""" ); }