@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (!super.equals(obj))
            return false;
        if (!(obj instanceof CompositeDataTypeElementInfo))
            return false;
        final CompositeDataTypeElementInfo other = (CompositeDataTypeElementInfo) obj;
        if (dataTypeOffset != other.dataTypeOffset)
            return false;
        return true;
    }
Constructor for CompositeDataTypeElementInfo (copy-ish).

@param dataTypeInfo
           the dataType this CompositeDataTypeElementInfo is based upon
@param dataTypeOffset
           the offset of the element within the outer composite data type
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/util/CompositeDataTypeElementInfo.java