private boolean isCompatibleOverlay(ProgramOverlayAddressSpace os, DBTraceOverlaySpaceEntry ent,
			ProgramAddressFactory factory) {
		AddressSpace baseSpace = factory.getAddressSpace(ent.baseSpace);
		if (baseSpace == null) {
			// Error condition should be handled better - language may have dropped original base space
			throw new RuntimeException("Base space for overlay not found: " + ent.baseSpace);
		}
		return baseSpace == os.getOverlayedSpace();
	}
Used for objects having an {@link Address} field.

<p>
Most managers storing things by address will actually have a table per space, so the address
is encoded only as an offset. However, any other {@link Address} field (not constrained to
the same space) will need to encode the space information as well. This codec can do that.
The object will need to return its trace's space adapter, though.

@param <OT> the type of object containing the field
Ghidra/Debug/Framework-TraceModeling/src/main/java/ghidra/trace/database/address/DBTraceOverlaySpaceAdapter.java