PsiReference[] () { GlobalSearchScope projectScope = GlobalSearchScope.projectScope(myClass.getProject()); return ReferencesSearch.search(myClass, projectScope, false).toArray(PsiReference.EMPTY_ARRAY); }