@Override
  protected void addReferenceAtCaret(Collection<? super PsiReference> refs) {
    if (!isReplaceAllOccurrences()) {
      final PsiExpression expr = getExpr();
      if (expr == null && !myReplaceSelf || expr != null && expr.getParent() == getVariable()) {
        return;
      }
    }
    super.addReferenceAtCaret(refs);
  }
@Override
  protected void addReferenceAtCaret(Collection<? super PsiReference> refs)