def METHOD_NAME(self):
    serializer = _get_serializer_class(self.target)
    # definitely not post-processable, as there is no (output) serializer
    if serializer is None:
        return self.target
    # now check if the serializer has a CSPPostProcessedHTMLField
    serializer = force_instance(serializer)
    is_post_processable = any(
        (
            isinstance(field, CSPPostProcessedHTMLField)
            for field in serializer.get_fields().values()
        )
    )
    if not is_post_processable:
        return self.target
    # ok, it's post proccessable -> add the header parameter
    @extend_schema(parameters=[NONCE_PARAMETER])
    class FixedView(self.target):
        pass
    return FixedView