void () { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); CommonCodeStyleSettings javaSettings = settings.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.ALIGN_MULTILINE_BINARY_OPERATION = true; doTextTest( "java", """ public class Test { public boolean hasInvalidResults() { return foo ||<caret>; } }""", """ public class Test { public boolean hasInvalidResults() { return foo || <caret>; } }""" ); }