def METHOD_NAME(self, rule_msg):
    """
    Check if given `rule_msg` is disabled. All takes precedence, then line disablers, then block disablers.
    We're checking for both message id and name.
    """
    if not self.any_disabler:
        return False
    return any(
        self.is_line_disabled(line, rule)
        for line in (rule_msg.line, *rule_msg.ext_disablers)
        for rule in ("all", rule_msg.rule_id, rule_msg.name)
    )