def METHOD_NAME(self) -> Tuple[List[str], List[str]]:
    #Reset the cura/categories_expanded property since it works differently now.
    if self._config.has_section("cura") and self._config.has_option("cura", "categories_expanded"):
        self._config.remove_option("cura", "categories_expanded")
    #Translate the setting names in the visible settings.
    if self._config.has_section("machines") and self._config.has_option("machines", "setting_visibility"):
        visible_settings = self._config.get("machines", "setting_visibility")
        visible_settings_list = visible_settings.split(",")
        import VersionUpgrade21to22 #Import here to prevent a circular dependency.
        visible_settings_list = [VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateSettingName(setting_name)
                            for setting_name in visible_settings_list]
        visible_settings = ",".join(visible_settings_list)
        self._config.set("machines", "setting_visibility", value = visible_settings)
    #Translate the active_instance key.
    if self._config.has_section("machines") and self._config.has_option("machines", "active_instance"):
        active_machine = self._config.get("machines", "active_instance")
        self._config.remove_option("machines", "active_instance")
        self._config.set("cura", "active_machine", active_machine)
    #Update the version number itself.
    self._config.set("general", "version", value = "3")
    #Output the result as a string.
    output = io.StringIO()
    self._config.write(output)
    return [self._filename], [output.getvalue()