public @NotNull List<JBCefCookie> get(@NotNull Supplier<Boolean> condition) {
      while (condition.get()) {
        try {
          if (myCountDownLatch.await(BOUNCE_TIMEOUT_MS, TimeUnit.MILLISECONDS)) {
            return myCefCookies;
          }
        }
        catch (InterruptedException e) {
          LOG.error("Cookie visiting is interrupted");
          break;
        }
      }
      return Collections.emptyList();
    }
public @NotNull List<JBCefCookie> get(@NotNull Supplier<Boolean> condition)