private void fireBulkExpandEnded() {
    Object[] listeners = listenerList.getListenerList();
    TreeBulkExpansionEvent e = null;
    for (int i = listeners.length - 2; i >= 0; i -= 2) {
      if (
        listeners[i] == TreeExpansionListener.class
        && listeners[i + 1] instanceof TreeBulkExpansionListener bulkExpansionListener
      ) {
        if (e == null) {
           e = new TreeBulkExpansionEvent(this, null, false);
        }
        bulkExpansionListener.treeBulkExpansionEnded(e);
      }
    }
  }
private void fireBulkExpandEnded()