void () { CommonCodeStyleSettings settings = getJavaCommonSettings(); settings.ALIGN_MULTILINE_TERNARY_OPERATION = true; doTextTest("java", """ class Foo { void foo () { PsiSubstitutor s = aClass == null ? PsiSubstitutor.EMPTY : <caret> } }""", "class Foo {\n" + " void foo () {\n" + " PsiSubstitutor s = aClass == null ?\n" + " PsiSubstitutor.EMPTY : \n" + " <caret>\n" + // Aligned with 'aClass'! " }\n" + "}" ); }