void () { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); CommonCodeStyleSettings javaSettings = settings.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.ALIGN_MULTILINE_BINARY_OPERATION = true; doTextTest( "java", """ public class Test { public void bar() { boolean abc; while (abc &&<caret>) { } } }""", """ public class Test { public void bar() { boolean abc; while (abc && <caret>) { } } }""" ); }