def METHOD_NAME(self, lines: List[str]) -> List[str]:
    tab_section = self.parse_tabs(lines)
    while tab_section:
        if "tabs" in tab_section:
            tab_class = "has-tabs"
        else:
            tab_class = "no-tabs"
            tab_section["tabs"] = [
                {
                    "tab_key": "instructions-for-all-platforms",
                    "start": tab_section["start_tabs_index"],
                }
            ]
        nav_bar = self.generate_nav_bar(tab_section)
        content_blocks = self.generate_content_blocks(tab_section, lines)
        rendered_tabs = TABBED_SECTION_TEMPLATE.format(
            tab_class=tab_class, nav_bar=nav_bar, blocks=content_blocks
        )
        start = tab_section["start_tabs_index"]
        end = tab_section["end_tabs_index"] + 1
        lines = [*lines[:start], rendered_tabs, *lines[end:]]
        tab_section = self.parse_tabs(lines)
    return lines