Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot
        be parsed, None is returned.
        By default 'section' is checked against 'subPattern' regular expression.

def createSubtitle(self, fps, section):
        """Returns a correct 'Subtitle' object from a text given in 'section'. If 'section' cannot
        be parsed, None is returned.
        By default 'section' is checked against 'subPattern' regular expression."""
        matched = self._pattern.search(section)
        if matched is not None:
            matchedDict = matched.groupdict()
            return Subtitle(
                self.frametime(fps, matchedDict.get("time_from")),
                self.frametime(fps, matchedDict.get("time_to")),
                self.formatSub(matchedDict.get("text"))
            )
        return None