void (@NotNull XmlElementDescriptor descriptor, CompletionResultSet result) { XmlTagInsertHandler insertHandler = XmlTagInsertHandler.INSTANCE; if (descriptor instanceof XmlElementDescriptorImpl) { String name = descriptor.getName(); if (name != null) { insertHandler = new ExtendedTagInsertHandler(name, ((XmlElementDescriptorImpl)descriptor).getNamespace(), null); } } result.addElement(createLookupElement(descriptor).withInsertHandler(insertHandler)); }