LookupElementBuilder (@NotNull XmlElementDescriptor descriptor) { LookupElementBuilder builder = LookupElementBuilder.create(descriptor.getName()); if (descriptor instanceof XmlElementDescriptorImpl) { builder = builder.withTypeText(((XmlElementDescriptorImpl)descriptor).getNamespace(), true); } return builder; }