def METHOD_NAME(
    self,
    listener: MessageListenerCallback,
    filter: Optional[MessageListenerCallbackFilter] = None,
) -> None:
    """Add listener."""
    self._listeners.append((listener, filter))