private <T> List<T> collectAll(Function<SpecInfo, T> getter) {
    List<T> result = new ArrayList<>();
    collectAll(result, getter, List::add);
    return result;
  }
Runtime information about a Spock specification.

@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/model/SpecInfo.java