XmlTag (final EvaluatedXmlName tagName) { final String localName = tagName.getXmlName().getLocalName(); if (localName.contains(":")) { try { return XmlElementFactory.getInstance(myManager.getProject()).createTagFromText("<" + localName + "/>"); } catch (IncorrectOperationException e) { LOG.error(e); } } final XmlElement element = getXmlElement(); assert element != null; return getXmlTag().createChildTag(localName, tagName.getNamespace(element, getFile()), null, false); }