void () { myFixture.configureByText("a.java", """ record Point(int x, int y); class X { void test(Object o) { if(o instanceof Poi<caret>) } }"""); myFixture.completeBasic(); assertEquals(List.of("Point", "PolicyQualifierInfo", "Point(int x, int y)", "NullPointerException"), myFixture.getLookupElementStrings()); selectItem(2); myFixture.checkResult(""" record Point(int x, int y); class X { void test(Object o) { if(o instanceof Point(int x, int y)) } }"""); }