public void setListSelectionListener(ListSelectionListener listener) {
		if (listSelectionListener != null) {
			list.removeListSelectionListener(listSelectionListener);
		}
		if (listener != null) {
			list.addListSelectionListener(listener);
		}
		listSelectionListener = listener;
	}
Sets the listener to be notified when the selection changes.
@param listener the Listener to be notified.  If listener can be null, which
means no one is to be notified.
Ghidra/Framework/Docking/src/main/java/docking/widgets/list/ListPanel.java