@Nullable
  public static PsiElement getQualifier(PsiElement elem){
    if (elem instanceof GrReferenceExpression) {
      return ((GrReferenceExpression)elem).getQualifierExpression();
    }
    return null;
  }
@Nullable
  public static PsiElement getQualifier(PsiElement elem)