LookupElement (IdeaPlugin plugin) { final String pluginId = plugin.getPluginId(); if (pluginId == null) return null; return LookupElementBuilder.create(pluginId) .withPsiElement(plugin.getXmlElement()) .withTailText(" " + StringUtil.notNullize(plugin.getName().getValue())) .withIcon(ElementPresentationManager.getIcon(plugin)); }