public static CompletableFuture<Void> resume(ThreadReference thread) {
    LOG.assertTrue(thread.suspendCount() > 0, "Suspend count must be greater zero before resume, " + thread);
    if (thread instanceof ThreadReferenceImpl && isAsyncEnabled()) {
      return ((ThreadReferenceImpl)thread).resumeAsync();
    }
    return toCompletableFuture(() -> thread.resume());
  }
public static CompletableFuture<Void> resume(ThreadReference thread)