@staticmethod
def is_collapsed(node):
    """A "collapsed" paragraph is one which has no text, immediately
        starting a subparagraph. For example:
        (a)(1) Some text    <- (a) is collapsed
        (a) Some text - (1) Other text   <- (a) is not collapsed
        """
    marker = '({})'.format(node['label'][-1])
    text_without_marker = node['text'].replace(marker, '')
    return node['text'].strip() and not text_without_marker.strip()
