private void insertDataTypeIntoSortedList(DataType dataType) {
		if (sortedDataTypes == null) {
			return;
		}
		int index = Collections.binarySearch(sortedDataTypes, dataType, nameComparator);
		if (index < 0) {
			index = -index - 1;
			sortedDataTypes.add(index, dataType);
		}
		else {
			// NOTE: ideally, this should never happen and may indicate presence of duplicate
			sortedDataTypes.set(index, dataType);
		}
	}
This method should be invoked following an undo/redo or a transaction rollback situation.
This will notify {@link DataTypeManagerChangeListenerHandler} and its listeners that this 
manager has just been restored (e.g., undo/redo/rollback).
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java