@Override protected void addReferenceAtCaret(Collection<PsiReference> refs) { final V variable = getLocalVariable(); if (variable != null) { for (PsiReference reference : ReferencesSearch.search(variable)) { refs.add(reference); } } else { refs.clear(); } }
public void clear() { for (Collection<PsiElement> elements : groupedByValue) { elements.clear(); } }