def METHOD_NAME(self, serialised: str, filename: str) -> Tuple[List[str], List[str]]:
    parser = configparser.ConfigParser(interpolation = None)
    parser.read_string(serialised)
    # Update IDs of the renamed quality profiles
    if parser.has_section("containers"):
        key_list = [key for key in parser["containers"].keys()]
        for key in key_list:
            container_id = parser.get("containers", key)
            new_id = _renamed_quality_profiles.get(container_id)
            if new_id is not None:
                parser.set("containers", key, new_id)
    if "6" not in parser["containers"]:
        parser["containers"]["6"] = parser["containers"]["5"]
        parser["containers"]["5"] = "empty"
    for each_section in ("general", "metadata"):
        if not parser.has_section(each_section):
            parser.add_section(each_section)
    # Update version numbers
    if "general" not in parser:
        parser["general"] = {}
    parser["general"]["version"] = "3"
    if "metadata" not in parser:
        parser["metadata"] = {}
    parser["metadata"]["setting_version"] = "2"
    # Re-serialise the file.
    output = io.StringIO()
    parser.write(output)
    return [filename], [output.getvalue()]