public List<SpecInfo> getSpecsTopToBottom() {
    if (specsTopToBottom == null) {
      specsTopToBottom = collectSpecHierarchy(this::getTopSpec, SpecInfo::getSubSpec);
    }

    return specsTopToBottom;
  }
Runtime information about a Spock specification.

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