@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();
   }
 }
Ejemplo n.º 2
0
 public void clear() {
   for (Collection<PsiElement> elements : groupedByValue) {
     elements.clear();
   }
 }