private boolean contains(Register parent, Register child) {
		if (!parent.getAddressSpace().equals(child.getAddressSpace())) {
			return false;
		}

		long parentOffset = parent.getOffset();
		long childOffset = child.getOffset();
		if ((childOffset < parentOffset) || (childOffset +
			child.getMinimumByteSize() > parentOffset + parent.getMinimumByteSize())) {
			return false;
		}

		if (parent.getLeastSignificantBit() != 0) {
			return false;
		}
		if (parent.getBitLength() != parent.getMinimumByteSize() * 8) {
			return false;
		}
		return true;
	}
Compute current register collection and instantiate a {@link RegisterManager}
@return new register manager instance
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/RegisterBuilder.java