public static void awaitWithCheckCanceled(@NotNull Lock lock) {
    awaitWithCheckCanceled(() -> lock.tryLock(ConcurrencyUtil.DEFAULT_TIMEOUT_MS, TimeUnit.MILLISECONDS));
  }
public static void awaitWithCheckCanceled(@NotNull Lock lock)