public static CompletableFuture<Map<Field, Value>> getValues(ObjectReference ref, List<Field> fields) {
    if (ref instanceof ObjectReferenceImpl && isAsyncEnabled()) {
      return reschedule(((ObjectReferenceImpl)ref).getValuesAsync(fields));
    }
    return completedFuture(ref.getValues(fields));
  }
public static CompletableFuture<Map<Field, Value>> getValues(ObjectReference ref, List<Field> fields)