def METHOD_NAME(self, statement: 'list[Token]') -> 'list[list[Token]]':
    lines = []
    current = []
    for token in statement:
        current.append(token)
        if token.type == Token.EOL:
            lines.append(current)
            current = []
    if current:
        lines.append(current)
    return lines