void (@NotNull Collection<? super PsiReference> refs, @Nullable PsiReference reference) { if (reference != null && reference.isReferenceTo(myElementToRename) && !refs.contains(reference)) { refs.add(reference); } }