void () { String text = """ class X { void test(Object obj) { switch (obj) { case String _ when _.isE<caret> } } } """; myFixture.configureByText("a.java", text); myFixture.completeBasic(); myFixture.checkResult(text); }