@staticmethod
def close_context(lines):
    """
        >>> ListAttribute().close_context(['| hello', 'yes'])
        ['hello', 'yes']
        >>> ListAttribute().close_context(['hello', 'yes'])
        ['yes']
        """
    if lines[0].count(' '):
        _, lines[0] = lines[0].split(' ', 1)
    else:
        lines.pop(0)
    return lines
