def METHOD_NAME(self) -> str:
    if isinstance(self.inner, srt.Subtitle):
        ret = self.inner.METHOD_NAME
    elif isinstance(self.inner, pysubs2.SSAEvent):
        ret = self.inner.text
    else:
        raise NotImplementedError(
            "unsupported subtitle type: %s" % type(self.inner)
        )
    return ret