@Override
	public void domainObjectChanged(DomainObjectChangedEvent ev) {
		if (program == null || !ev.contains(DomainObjectEvent.RESTORED)) {
			return;
		}

		if (blockStart == null) {
			return; // not yet initialized
		}

		MemoryBlock updatedBlock = program.getMemory().getBlock(blockStart);
		initialize(updatedBlock);
	}
Base class for a model that expands a memory block.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/memory/ExpandBlockModel.java