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