def METHOD_NAME(
    self,
) -> tuple[list[MessageDefinition], list[MessageDefinition]]:
    """Finds all emittable and non-emittable messages."""
    messages = sorted(self._messages_definitions.values(), key=lambda m: m.msgid)
    emittable = []
    non_emittable = []
    for message in messages:
        if message.may_be_emitted(self.py_version):
            emittable.append(message)
        else:
            non_emittable.append(message)
    return emittable, non_emittable