def METHOD_NAME(rule_cls):
    for v in values:
        cls.rule_value_classes.setdefault(v, []).append(rule_cls)
    for t in types:
        cls.rule_type_classes.setdefault(t, []).append(rule_cls)
    return rule_cls