QName (@NotNull String qname, @NotNull PsiElement context) { final String[] strings = qname.split(":", 2); if (strings.length == 1) { return new QName(null, qname); } final XmlElement ctx = PsiTreeUtil.getParentOfType(context, XmlElement.class, false); if (ctx == null) return UNRESOLVED; final String uri = XsltNamespaceContext.getNamespaceUriStatic(strings[0], ctx); if (uri == null) return UNRESOLVED; return new QName(uri, strings[1], strings[0]); }