public static void awaitWithCheckCanceled(@NotNull Condition condition) {
    awaitWithCheckCanceled(() -> condition.await(ConcurrencyUtil.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS));
  }
public static void awaitWithCheckCanceled(@NotNull Condition condition)