public @NotNull Future<@NotNull List<JBCefCookie>> getCookies(@Nullable String url, @Nullable Boolean includeHttpOnly) {
    JBCookieVisitor cookieVisitor = new JBCookieVisitor();
    boolean result;
    if (url != null) {
      result = myCefCookieManager.visitUrlCookies(url, notNull(includeHttpOnly, Boolean.FALSE), cookieVisitor);
    }
    else {
      result = myCefCookieManager.visitAllCookies(cookieVisitor);
    }
    if (!result) {
      LOG.debug("Cookies cannot be accessed");
      return CompletableFuture.completedFuture(Collections.emptyList());
    }
    Ref<Future<@NotNull List<JBCefCookie>>> futureRef = new Ref<>();
    futureRef.set(myExecutorService.submit(() -> cookieVisitor.get(() -> futureRef.get() == null || !futureRef.get().isDone())));
    return futureRef.get();
  }
public @NotNull Future<@NotNull List<JBCefCookie>> getCookies(@Nullable String url, @Nullable Boolean includeHttpOnly)