@Override
    public boolean isReferenceTo(@NotNull PsiElement element) {
      return myElement.getManager().areElementsEquivalent(element, resolve());
    }
@Override
    public boolean isReferenceTo(@NotNull PsiElement element)