def METHOD_NAME() -> None:
    nonlocal current_name_rules
    if len(current_name_rules) >= NAMEMAP_BLOCK_MIN_SIZE:
        self._ruleblocks.append(NameMapRuleBlock(current_name_rules))
    elif current_name_rules:
        self._ruleblocks.extend([SingleRuleBlock(rule) for rule in current_name_rules])
    current_name_rules = []