@Nullable
  private static PsiElement resolve(PsiElement element) {
    GrReferenceExpression ref = findRef(element);

    if (ref == null || ref.getQualifier() == null) return null;
    return ref.resolve();
  }
@Nullable
  private static PsiElement resolve(PsiElement element)