void () { CommonCodeStyleSettings settings = getJavaCommonSettings(); settings.ALIGN_MULTILINE_BINARY_OPERATION = true; doTextTest("java", """ class Foo { void foo() { if (info.myTargetElement != null && info.myElementAtPointer != null && <caret>info.myTargetElement != info.myElementAtPointer) { } } }""", """ class Foo { void foo() { if (info.myTargetElement != null && info.myElementAtPointer != null &&\s <caret>info.myTargetElement != info.myElementAtPointer) { } } }"""); }