def METHOD_NAME(self, serialised: str, filename: str) -> Tuple[List[str], List[str]]:
    parser = configparser.ConfigParser(interpolation = None)
    parser.read_string(serialised)
    for each_section in ("general", "metadata"):
        if not parser.has_section(each_section):
            parser.add_section(each_section)
    # change "not supported" quality profiles to empty because they no longer exist
    if parser.has_section("containers"):
        if parser.has_option("containers", "2"):
            quality_profile_id = parser["containers"]["2"]
            if quality_profile_id in _OLD_NOT_SUPPORTED_PROFILES:
                parser["containers"]["2"] = "empty_quality"
        # fix empty containers
        for key, specific_empty_container in _EMPTY_CONTAINER_DICT.items():
            if parser.has_option("containers", key) and parser["containers"][key] == "empty":
                parser["containers"][key] = specific_empty_container
        # check renamed definition
        if parser.has_option("containers", "6") and parser["containers"]["6"] in _RENAMED_DEFINITION_DICT:
            parser["containers"]["6"] = _RENAMED_DEFINITION_DICT[parser["containers"]["6"]]
    # 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"] = "4"
    # Re-serialise the file.
    output = io.StringIO()
    parser.write(output)
    return [filename], [output.getvalue()]