static boolean canResolveToPackage(@NotNull PsiElement qualifier) {
    return qualifier instanceof GrReferenceExpression
           && resolvePackageFqn((GrReferenceElement<?>)qualifier) != null;
  }
static boolean canResolveToPackage(@NotNull PsiElement qualifier)