List<JBCefCookie> (@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(); }