@TestOnly
  public static boolean isCanceledThread(@NotNull Thread thread) {
    synchronized (threadsUnderIndicator) {
      return threadsUnderCanceledIndicator.contains(thread);
    }
  }
@TestOnly
  public static boolean isCanceledThread(@NotNull Thread thread)