private boolean findClassOrPackageAtFirst() {
   final String name = getReferenceName();
   if (name == null || name.length() == 0 || hasAt()) return false;
   return Character.isUpperCase(name.charAt(0))
       || getParent() instanceof GrReferenceExpressionImpl
           && ((GrReferenceExpressionImpl) getParent()).findClassOrPackageAtFirst();
 }
  private boolean findClassOrPackageAtFirst() {
    final String name = getReferenceName();
    if (StringUtil.isEmpty(name) || hasAt()) return false;

    return Character.isUpperCase(name.charAt(0)) && !isMethodCallRef()
        || getParent() instanceof GrReferenceExpressionImpl
            && ((GrReferenceExpressionImpl) getParent()).findClassOrPackageAtFirst();
  }