def METHOD_NAME(
    sender: ScriptRunner | None, event: ScriptRunnerEvent, **kwargs
) -> None:
    # Assert that we're not getting unexpected `sender` params
    # from ScriptRunner.on_event
    assert (
        sender is None or sender == self
    ), "Unexpected ScriptRunnerEvent sender!"
    self.events.append(event)
    self.event_data.append(kwargs)
    # Send ENQUEUE_FORWARD_MSGs to our queue
    if event == ScriptRunnerEvent.ENQUEUE_FORWARD_MSG:
        forward_msg = kwargs["forward_msg"]
        self.forward_msg_queue.enqueue(forward_msg)