LookupElement (ActionOrGroup actionOrGroup) { PsiElement psiElement = getPsiElement(actionOrGroup); String name = StringUtil.notNullize(getName(actionOrGroup), DevKitBundle.message("plugin.xml.convert.action.or.group.invalid.name")); LookupElementBuilder builder = psiElement == null ? LookupElementBuilder.create(name) : LookupElementBuilder.create(psiElement, name); builder.putUserData(ActionOrGroupLookupRenderer.ACTION_OR_GROUP_KEY, actionOrGroup); return builder.withRenderer(ActionOrGroupLookupRenderer.INSTANCE); }