void (@NotNull String entryFilePath, @NotNull String variantName, @Nullable String tailText) { myFixture.copyDirectoryToProject(getTestName(true), ""); myFixture.configureByFile(entryFilePath); LookupElement[] variants = myFixture.completeBasic(); assertNotNull(variants); LookupElement lookupElement = ContainerUtil.find(variants, v -> v.getLookupString().equals(variantName)); assertNotNull(lookupElement); assertEquals(tailText, TestLookupElementPresentation.renderElement(lookupElement).getTailText()); }