private static boolean shortenUsages(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;
  }
private static boolean shortenUsages(PsiElement resolved, PsiFile containingFile)