public static CompletableFuture<StackFrame> frame(ThreadReference thread, int index) {
    if (thread instanceof ThreadReferenceImpl && isAsyncEnabled()) {
      return reschedule(((ThreadReferenceImpl)thread).frameAsync(index));
    }
    return toCompletableFuture(() -> thread.frame(index));
  }
public static CompletableFuture<StackFrame> frame(ThreadReference thread, int index)