private void fireDataChanged() {
    Object[] list = myListenerList.getListenerList();

    for (Object aList : list) {
      if (aList instanceof DataChanged dataChanged) {
        dataChanged.dataChanged();
      }
    }
  }
private void fireDataChanged()