docs: static String getSQL(Token[] statement) {
  
          boolean      wasDelimiter = true;
          StringBuffer sb           = new StringBuffer();
  
          for (int i = 0; i < statement.length; i++) {
              // when the previous statement is ')', there should be a blank before the non-delimiter statement.
              if (!statement[i].isDelimiter &&
                      (!wasDelimiter
                              || (i > 0 && ")".equals(statement[i - 1].getSQL()))))
              {
                  sb.append(' ');
              }
  
              sb.append(statement[i].getSQL());
  
              wasDelimiter = statement[i].isDelimiter;
          }
  
          return sb.toString();
      }