@Nullable
  private static GrExpression getQualifierFromGetterCall(GrMethodCall methodExpression) {
    final GroovyResolveResult result = methodExpression.advancedResolve();
    if (!(result.getElement() instanceof GrAccessorMethod) || result.isInvokedOnProperty()) return null;

    final GrExpression invoked = methodExpression.getInvokedExpression();
    if (invoked instanceof GrReferenceExpression) return ((GrReferenceExpression)invoked).getQualifier();

    return null;
  }
@Nullable
  private static GrExpression getQualifierFromGetterCall(GrMethodCall methodExpression)