private static void waitBarrier(CyclicBarrier barrier) {
    try {
      barrier.await();
    }
    catch (InterruptedException | BrokenBarrierException ignore) {
    }
  }
private static void waitBarrier(CyclicBarrier barrier)