PsiReference[] () { PsiNamedElement namedElement = getElementAtCaret(); GlobalSearchScope searchScope = GlobalSearchScope.allScope(myProject); return ReferencesSearch.search(namedElement, searchScope, false).toArray(PsiReference.EMPTY_ARRAY); }