question: List < String > linesToStatements ( List < String > lines ) { List < String > statements = new ArrayList < > ( ) ; Delimiter nonStandardDelimiter = null ; CqlStatementBuilder cqlStatementBuilder = new CqlStatementBuilder ( ) ; for ( int lineNumber = 1 ; lineNumber <= lines . size ( ) ; lineNumber ++ ) { String line = lines . get ( lineNumber - 1 ) ; if ( cqlStatementBuilder . isEmpty ( ) ) { if ( ! StringUtils . hasText ( line ) ) { continue ; } Delimiter newDelimiter = cqlStatementBuilder . extractNewDelimiterFromLine ( line ) ; if ( newDelimiter != null ) { nonStandardDelimiter = newDelimiter ; continue ; } cqlStatementBuilder . setLineNumber ( lineNumber ) ; if ( nonStandardDelimiter != null ) { cqlStatementBuilder . setDelimiter ( nonStandardDelimiter ) ; } } cqlStatementBuilder . addLine ( line ) ; if ( cqlStatementBuilder . isTerminated ( ) ) { String cqlStatement = cqlStatementBuilder . getCqlStatement ( ) ; statements . add ( cqlStatement ) ; LOG . debug ( "Found statement: " + cqlStatement ) ; cqlStatementBuilder = new CqlStatementBuilder ( ) ; } else if ( cqlStatementBuilder . canDiscard ( ) ) { cqlStatementBuilder = new CqlStatementBuilder ( ) ; } } if ( ! cqlStatementBuilder . isEmpty ( ) ) { statements . add ( cqlStatementBuilder . getCqlStatement ( ) ) ; } return statements ; }
target:  Turns these lines in a series of statements.