@Override
	public boolean isValid(Program p) {
		if (!super.isValid(p)) {
			return false;
		}
		return p.getListing().getCodeUnitContaining(addr) != null;
	}
Default constructor for a code unit location needed for restoring from XML.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/CodeUnitLocation.java