void () { // Inspired by IDEA-130575 getSettings().ENUM_CONSTANTS_WRAP = CommonCodeStyleSettings.WRAP_ALWAYS; doTextTest( """ public enum Test { TEST1("test"),//comment 1 TEST2("test");//comment 2 private String value; Test(String value) { this.value = value; } public String getValue() { return value; } }""", """ public enum Test { TEST1("test"),//comment 1 TEST2("test");//comment 2 private String value; Test(String value) { this.value = value; } public String getValue() { return value; } }""" ); }