private void shutdownExecutor()

in src/main/java/org/jetbrains/jetCheck/Iteration.java [173:182]


  private void shutdownExecutor() {
    executor.shutdownNow();
    try {
      if (!executor.awaitTermination(1, TimeUnit.MINUTES)) {
        throw new IllegalStateException("Cannot shutdown " + EXECUTOR_NAME);
      }
    } catch (InterruptedException e) {
      throw new RuntimeException("Cannot shutdown " + EXECUTOR_NAME, e);
    }
  }