code: public List<Statement> getAllStatements() {
          final List<Statement> ret = new LinkedList<Statement>();
          for (final StatementGroup sg : statementGroups) {
              ret.addAll(sg.getAllStatements());
          }
          return ret;
      }
docs: Returns a list of all statements contained within the document.
  
  @return List of statements, which may be empty