public @NotNull Future<@NotNull Boolean> deleteCookies(@Nullable String url, @Nullable String cookieName) {
    if (!myCefCookieManager.deleteCookies(url, cookieName)) {
      LOG.error("Posting task to delete cookies is failed");
      return CompletableFuture.completedFuture(false);
    }
    Ref<Future<@NotNull Boolean>> futureRef = new Ref<>();
    futureRef.set(myExecutorService.submit(() -> {
      while (futureRef.get() == null || !futureRef.get().isDone()) {
        if (!ContainerUtil.exists(getCookies(url, false, BOUNCE_TIMEOUT_MS),
                                  cookie -> cookie.getName().equals(cookieName)))
        {
          return true;
        }
      }
      return false;
    }));
    return futureRef.get();
  }
public @NotNull Future<@NotNull Boolean> deleteCookies(@Nullable String url, @Nullable String cookieName)