def METHOD_NAME(
    self, lineno: int, line: bytes, file_encoding: str
) -> str | None:
    try:
        return line.decode(file_encoding)
    except UnicodeDecodeError:
        pass
    except LookupError:
        if (
            line.startswith(b"#")
            and "coding" in str(line)
            and file_encoding in str(line)
        ):
            msg = f"Cannot decode using encoding '{file_encoding}', bad encoding"
            self.add_message("syntax-error", line=lineno, args=msg)
    return None