void (LookupElement[] variants, String lookupText, String tailText, String typeText) { LookupElement lookupElement = ContainerUtil.find(variants, it -> lookupText.equals(it.getLookupString())); assertNotNull(toString(variants, "\n"), lookupElement); LookupElementPresentation presentation = new LookupElementPresentation(); lookupElement.renderElement(presentation); assertEquals(lookupText, presentation.getItemText()); assertEquals(tailText, presentation.getTailText()); assertEquals(typeText, presentation.getTypeText()); }