public static CompletableFuture<List<Value>> getValues(ArrayReference ref, int index, int length) {
    if (ref instanceof ArrayReferenceImpl && isAsyncEnabled()) {
      return reschedule(((ArrayReferenceImpl)ref).getValuesAsync(index, length));
    }
    return completedFuture(ref.getValues(index, length));
  }
public static CompletableFuture<List<Value>> getValues(ArrayReference ref, int index, int length)