code: public static <DPO> SingleResultCollectorContext<DPO> collect(SimpleValidator<?, ?, ?, ?, ?, ?,
              ResultHandler<DPO>, DPO> validator) {
          List<Trigger> addedTriggers = new ArrayList<Trigger>();
          List<DataProvider<DPO>> addedDataProviders = new ArrayList<DataProvider<DPO>>();
          if (validator != null) {
              // Create result collector
              SimpleResultCollector<DPO> resultCollector = new SimpleResultCollector<DPO>();
  
              // Register result collector in specified validator
              validator.addResultHandler(resultCollector);
  
              // Result result collector in validator under construction
              addedTriggers.add(resultCollector);
              addedDataProviders.add(resultCollector);
          }
  
          return new SingleResultCollectorContext<DPO>(addedTriggers, addedDataProviders);
      }
docs: Adds a new result collector as trigger and data provider to the validator under construction, in order to collect
  the results of the specified validator.
  
  @param validator Validator to collect the result from.<br>A result collector will be created, added as a result
  handler to the specified validator, and added as a trigger and data provider in the validator
  under construction.
  @param <DPO>     Type of data provider output, that is to say, type of result of the specified validator.
  
  @return Context allowing further construction of the validator using the DSL.