public static @Nullable XmlTag resolveTagReference(@Nullable XmlAttribute ref) {
    PsiElement element = resolveReference(ref);
    return element instanceof XmlTag ? (XmlTag)element : null;
  }
public static @Nullable XmlTag resolveTagReference(@Nullable XmlAttribute ref)