public static @Nullable PsiElement getParentTagCandidate(final XmlElement xmlElement) {
    final PsiElement parent = xmlElement.getParent();
    return parent instanceof XmlEntityRef ? parent.getParent() : parent;
  }
public static @Nullable PsiElement getParentTagCandidate(final XmlElement xmlElement)