LookupElementPresentation (String lookupString) { final LookupElement lookupElement = ContainerUtil.find(myFixture.getLookupElements(), element -> element.getLookupString().equals(lookupString)); assertNotNull(lookupString, lookupElement); return LookupElementPresentation.renderElement(lookupElement); }