@Override
  protected boolean equivalentDeclarations(PsiElement element1, PsiElement element2) {
    return super.equivalentDeclarations(element1, element2) ||
           declarationEquivalence.get(element1) == element2 ||
           element1 == declarationEquivalence.get(element2);
  }
@Override
  protected boolean equivalentDeclarations(PsiElement element1, PsiElement element2)