boolean (PsiElement resolved, PsiFile containingFile) { boolean isAnythingShortened = false; for (PsiReference reference : ReferencesSearch.search(resolved, new LocalSearchScope(containingFile))) { final PsiElement refElement = reference.getElement(); if (refElement instanceof GrQualifiedReference<?>) { boolean shortened = GrReferenceAdjuster.shortenReference((GrQualifiedReference<?>)refElement); isAnythingShortened |= shortened; } } return isAnythingShortened; }