void () { // Inspired by IDEA-21191 getSettings().BLANK_LINES_AROUND_CLASS = 3; doTextTest( """ public class FormattingTest { { System.out.println(""); } class MyInnerClass1 { } { System.out.println(""); } static { System.out.println(""); } class MyInnerClass2 { } static { System.out.println(""); } }""", """ public class FormattingTest { { System.out.println(""); } class MyInnerClass1 { } { System.out.println(""); } static { System.out.println(""); } class MyInnerClass2 { } static { System.out.println(""); } }""" ); }