def METHOD_NAME(self, serialised: str, filename: str) -> Tuple[List[str], List[str]]:
    config = configparser.ConfigParser(interpolation = None)
    config.read_string(serialised)
    if not config.has_section("general"):
        raise UM.VersionUpgrade.FormatException("No \"general\" section.")
    # Make z_seam_x and z_seam_y options visible. In a clean 2.4 they are visible by default.
    if config.has_option("general", "visible_settings"):
        visible_settings = config.get("general", "visible_settings")
        visible_set = set(visible_settings.split(";"))
        visible_set.add("z_seam_x")
        visible_set.add("z_seam_y")
        config.set("general", "visible_settings", ";".join(visible_set))
    config.set("general", "version", value="4")
    output = io.StringIO()
    config.write(output)
    return [filename], [output.getvalue()]