public List<MethodInfo> getAllCleanupMethods() {
    return collectAllFromIterable(SpecInfo::getCleanupMethods);
  }
Runtime information about a Spock specification.

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