void () { myFixture.addClass("package com.example; public record Point(int x, int y) {}"); myFixture.configureByText("a.java", """ class X { void test(Object o) { switch(o) { case Poi<caret> } } }"""); myFixture.completeBasic(); assertEquals(List.of("Point", "PolicyQualifierInfo", "Point(int x, int y)", "NullPointerException"), myFixture.getLookupElementStrings()); selectItem(2); myFixture.checkResult(""" import com.example.Point; class X { void test(Object o) { switch(o) { case Point(int x, int y) } } }"""); }