@Override
  public boolean hasModalProgressIndicator() {
    synchronized (threadsUnderIndicator) {
      for (ProgressIndicator t : threadsUnderIndicator.keySet()) {
        if (t.isModal()) {
          return true;
        }
      }
      return false;
    }
  }
@Override
  public boolean hasModalProgressIndicator()