@Override
  public boolean isReferenceTo(final @NotNull PsiElement element) {
    final PsiManager manager = getManager();
    for (final ResolveResult result : multiResolve(false)) {
      if (manager.areElementsEquivalent(result.getElement(), element)) return true;
    }
    return false;
  }
@Override
  public boolean isReferenceTo(final @NotNull PsiElement element)