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