Collection<PsiReference> (@NotNull PsiElement element) { if (element instanceof PsiMethod) { return MethodReferencesSearch.search((PsiMethod)element, GlobalSearchScope.projectScope(getProject()), false).findAll(); } return ReferencesSearch.search(element, GlobalSearchScope.projectScope(getProject())).findAll(); }