void () { myFixture.addClass("package foo; public class List {}"); configureByTestName(); getLookup().setCurrentItem(ContainerUtil.find( myFixture.getLookupElements(), item -> item.getObject() instanceof PsiClass cls && "java.util.List".equals(cls.getQualifiedName()))); myFixture.type('\n'); checkResult(); }