docs: public void addStatement(AstNode statement) {
          assertNotNull(statement);
          if (statements == null) {
              statements = new ArrayList<AstNode>();
          }
          int end = statement.getPosition() + statement.getLength();
          this.setLength(end - this.getPosition());
          statements.add(statement);
          statement.setParent(this);
      }