private void removeDataTypeFromSortedList(DataTypePath dataTypePath) {
		if (sortedDataTypes == null) {
			return;
		}
		// find and remove exact match from sortedDataTypes list
		String name = dataTypePath.getDataTypeName();
		DataType compareDataType =
			new TypedefDataType(dataTypePath.getCategoryPath(), name, DataType.DEFAULT, this);
		int index = Collections.binarySearch(sortedDataTypes, compareDataType, nameComparator);
		if (index >= 0) {
			sortedDataTypes.remove(index);
		}
	}
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