void () { myFixture.addClass("package foo.bar; public class BarAction extends com.intellij.openapi.actionSystem.AnAction { }"); myFixture.addClass("package foo.goo; public class GooAction extends com.intellij.openapi.actionSystem.AnAction { }"); myFixture.configureByFile(getTestName(false) + ".xml"); myFixture.completeBasic(); assertSameElements(myFixture.getLookupElementStrings(), "bar", "goo"); assertNotNull(toString(myFixture.getLookup().getAdvertisements()), ContainerUtil.find(myFixture.getLookup().getAdvertisements(), it -> it.contains("to see inheritors of com.intellij.openapi.actionSystem.AnAction"))); }