public static boolean canResolveToMethod(@NotNull GrReferenceExpression ref) {
    assert !ref.hasMemberPointer();
    return ref.getParent() instanceof GrMethodCall;
  }
public static boolean canResolveToMethod(@NotNull GrReferenceExpression ref)