def METHOD_NAME(self, ob):
    ob_params = ob.descr
    encoded_ob = ob.encode()
    self.compare_mask[ob_params.word_idx] |= encoded_ob.mask
    self.ref_values[ob_params.word_idx] |= encoded_ob.value
    if ob.mode == OptionByte.OBMode.READ_WRITE:
        self.write_mask[ob_params.word_idx] |= encoded_ob.mask