docs: public boolean hasReturn(List<Statement> statements) {
          boolean hasReturn = false;
          for (Statement statement : statements) {
              hasReturn = hasReturn || statement.match(new Statement.MatchBlockWithDefault<Boolean>() {
                  @Override
                  public Boolean _case(Return x) {
                      return true;
                  }
  
                  @Override
                  public Boolean _default(Statement x) {
                      return false;
                  }
              });
          }
          return hasReturn;
      }