void () { CodeStyleSettings settings = getCodeStyleSettings(); settings.getCommonSettings(JavaLanguage.INSTANCE).ALIGN_MULTILINE_FOR = true; doTextTest("java", """ class Foo { void foo() { for(int i = 0;<caret> } }""", """ class Foo { void foo() { for(int i = 0; <caret> } }"""); doTextTest("java", """ class Foo { void foo() { for(int i = 0; i < 10;<caret> } }""", """ class Foo { void foo() { for(int i = 0; i < 10; <caret> } }"""); }