private void notifyListenersOnBulkModeStarting() {
    DelayedExceptions exceptions = new DelayedExceptions();
    DocumentListener[] listeners = getListeners();
    for (int i = listeners.length - 1; i >= 0; i--) {
      try {
        listeners[i].bulkUpdateStarting(this);
      }
      catch (Throwable e) {
        exceptions.register(e);
      }
    }
    exceptions.rethrowPCE();
  }
private void notifyListenersOnBulkModeStarting()