@staticmethod
def filter_meta(segments, keep_meta=False):
    """Filter the segments to non-meta.

        Or optionally the opposite if keep_meta is True.
        """
    buff = []
    for elem in segments:
        if elem.is_meta is keep_meta:
            buff.append(elem)
    return tuple(buff)
