def encompasses(self, span):
        """
        Returns true if the given span fits inside this one
        """
        if isinstance(span, list):
            return [sp for sp in span if self._encompasses(sp)]

        return self._encompasses(span)
Returns true if the given span fits inside this one