def METHOD_NAME(self, trigger, spec):
    for t_spec in spec.impact_triggers.values():
        args = t_spec.get_trigger()
        msg = args[0]
        if msg == trigger.triggerId:
            return t_spec
    return None