def METHOD_NAME(content: str, filename: str) -> None:
    if filename == "-":
        print(content)
    else:
        with open(filename, "w", encoding="utf-8") as file:
            file.write(content)
    self.after_write_file(args, filename, doc)