code: public List<Annotation> getAllAnnotations() {
          List<Annotation> ret = new ArrayList<Annotation>();
          for (StatementGroup sg : statementGroups) {
              ret.addAll(sg.getAllAnnotations());
          }
          return ret;
      }
docs: Returns all annotations contained within the document.
  
  @return List of annotations, which may be empty