public static LookupElementPresentation renderElement(LookupElement element) { LookupElementPresentation presentation = new LookupElementPresentation(); element.renderElement(presentation); return presentation; }
private static LookupElementPresentation renderItemApproximately(LookupElement item) { final LookupElementPresentation p = new LookupElementPresentation(); item.renderElement(p); return p; }