void () { getSettings().KEEP_BLANK_LINES_IN_DECLARATIONS = 0; getSettings().KEEP_BLANK_LINES_IN_CODE = 1; getSettings().KEEP_BLANK_LINES_BEFORE_RBRACE = 0; doTextTest( """ public enum SomeEnum { SOME; public void smth(){} } public abstract class SomeClass { public void smth(){} }""", """ public enum SomeEnum { SOME; public void smth() { } } public abstract class SomeClass { public void smth() { } }""" ); }