code: public static <T> List<T> toList(final Class<T> type, final EvaluationContext ctx, final List<Parameter> parameters) {
          List<T> values = new ArrayList();
          if (null != parameters) {
              for (Parameter param : parameters) {
                  consume(type, ctx, values, param.getValue());
              }
          }
          return values;
      }
docs: Translate the collection of parameters into a collection of values of type T.
  
  @param type
  The type to translate the collection into.
  
  @param ctx
  Context.
  
  @param parameters
  Collection of parameters.
  
  @param <T>
  Type T returned as a List of T.
  
  @return
  List of T either empty or containing contents.