private static @Nullable String getTagName(@Nullable PsiElement psiElement1) {
    XmlTag xmlTag = PsiTreeUtil.getParentOfType(psiElement1, XmlTag.class, false);
    if (xmlTag != null) {
      if (XsltSupport.isXsltTag(xmlTag)) {
        return xmlTag.getLocalName();
      }
      else if (XmlUtil.ourSchemaUrisList.contains(xmlTag.getNamespace())) {
        PsiFile file = xmlTag.getContainingFile();
        if (file instanceof XmlFile) {
          XmlTag tag = ((XmlFile)file).getRootTag();
          if (tag != null && XsltSupport.XSLT_NS.equals(tag.getAttributeValue("targetNamespace"))) {
            return xmlTag.getAttributeValue("name");
          }
        }
      }
    }
    return null;
  }
private static @Nullable String getTagName(@Nullable PsiElement psiElement1)