public static CompletableFuture<Void> resume(VirtualMachine vm) {
    if (vm instanceof VirtualMachineImpl && isAsyncEnabled()) {
      return ((VirtualMachineImpl)vm).resumeAsync();
    }
    return toCompletableFuture(() -> vm.resume());
  }
public static CompletableFuture<Void> resume(VirtualMachine vm)