void () { CodeStyleSettings settings = CodeStyle.getSettings(getProject()); CommonCodeStyleSettings javaSettings = settings.getCommonSettings(JavaLanguage.INSTANCE); javaSettings.ALIGN_MULTILINE_BINARY_OPERATION = true; doTextTest( "java", """ class T { private void someMethod() { System.out.println("foo" +<caret>); } }""", """ class T { private void someMethod() { System.out.println("foo" + <caret>); } }""" ); }