void () { getSettings(JavaLanguage.INSTANCE).RIGHT_MARGIN = 20; getSettings(JavaLanguage.INSTANCE).THROWS_KEYWORD_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getSettings(JavaLanguage.INSTANCE).THROWS_LIST_WRAP = CommonCodeStyleSettings.DO_NOT_WRAP; getSettings(JavaLanguage.INSTANCE).ALIGN_MULTILINE_THROWS_LIST = false; doTextTest(""" class Foo { void methodFoo() throws IOException, InvalidOperationException { } }""", """ class Foo { void methodFoo() throws IOException, InvalidOperationException { } }"""); getSettings(JavaLanguage.INSTANCE).THROWS_KEYWORD_WRAP = CommonCodeStyleSettings.DO_NOT_WRAP; getSettings(JavaLanguage.INSTANCE).THROWS_LIST_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getSettings(JavaLanguage.INSTANCE).ALIGN_MULTILINE_THROWS_LIST = false; doTextTest(""" class Foo { void methodFoo() throws IOException, InvalidOperationException { } }""", """ class Foo { void methodFoo() throws IOException, InvalidOperationException { } }"""); }