protected void unitSpanChanged(Lifespan oldSpan, T unit) {
		cacheForContaining.notifyEntryShapeChanged(unit.getLifespan(), unit.getRange(), unit);
		cacheForSequence.notifyEntryShapeChanged(unit.getLifespan(), unit.getRange(), unit);
		space.undefinedData.invalidateCache();
		space.trace.setChanged(new TraceChangeRecord<>(TraceEvents.CODE_LIFESPAN_CHANGED, space,
			unit, oldSpan, unit.getLifespan()));
	}
Notify domain object listeners taht a unit's lifespan changed

@param oldSpan the old snap
@param unit the unit (having the new span)
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/listing/AbstractBaseDBTraceDefinedUnitsView.java