def METHOD_NAME(self, key, channel, sample, thismod, defined_samp):
    self.builder_data.setdefault(key, {}).setdefault(sample, {}).setdefault(
        'data', {'mask': []}
    )
    nom = (
        defined_samp['data']
        if defined_samp
        else [0.0] * self.config.channel_nbins[channel]
    )
    moddata = self.collect(thismod, nom)
    self.builder_data[key][sample]['data']['mask'] += moddata['mask']
    if thismod:
        self.required_parsets.setdefault(
            thismod['name'],
            [required_parset(defined_samp['data'], thismod['data'])],
        )