public static CompletableFuture<Void> setEnabled(EventRequest request, boolean value) {
    EventRequestManager eventRequestManager = request.virtualMachine().eventRequestManager();
    if (eventRequestManager instanceof EventRequestManagerImpl && isAsyncEnabled()) {
      return ((EventRequestManagerImpl)eventRequestManager).setEnabledAsync(request, value);
    }
    return toCompletableFuture(() -> request.setEnabled(value));
  }
public static CompletableFuture<Void> setEnabled(EventRequest request, boolean value)