private void buildStatements(StringBuilder sb,List<Statement> statements,int indentation) throws SyntaxException {
  for (  Statement stmt : statements) {
    buildStatement(sb,stmt,indentation);
    if (sb.charAt(sb.length() - 1) != '\n') {
      sb.append(";\n");
    }
  }
}

private void buildStatements ( StringBuilder sb , List < Statement > statements , int indentation ) throws SyntaxException { for ( Statement stmt : statements ) { buildStatement ( sb , stmt , indentation ) ; if ( sb . charAt ( sb . length ( ) - 1 ) != '\n' ) { sb . append ( ";\n" ) ; } } }
build a list of statements . the ` ; ` at the end is automatically generated .
