void () { myFixture.addClass("package com.example; public record Age(int years) {}"); myFixture.addClass("package com.example; public record Person(String name, Age age) {}"); myFixture.configureByText("a.java", """ class X { void test(Object o) { if(o instanceof Pers<caret>) } }"""); myFixture.completeBasic(); assertEquals(List.of("Person", "Person(String name, Age age)"), myFixture.getLookupElementStrings()); selectItem(1); myFixture.checkResult(""" import com.example.Age; import com.example.Person; class X { void test(Object o) { if(o instanceof Person(String name, Age age)) } }"""); }