def METHOD_NAME(
    self, name: Optional[str], type_hint: Type, is_input: bool = False
) -> Codec:
    codec = find_input_codec(type_hint=type_hint)
    if codec is not None:
        return codec
    codec = find_request_codec(type_hint=type_hint)  # type: ignore
    if codec is not None:
        return codec
    raise CodecNotFound(name=name, payload_type=str(type_hint), is_input=is_input)