private void notifyListenersOnBulkModeFinished() {
    DelayedExceptions exceptions = new DelayedExceptions();
    DocumentListener[] listeners = getListeners();
    for (DocumentListener listener : listeners) {
      try {
        listener.bulkUpdateFinished(this);
      }
      catch (Throwable e) {
        exceptions.register(e);
      }
    }
    exceptions.rethrowPCE();
  }
private void notifyListenersOnBulkModeFinished()