@SuppressWarnings("unchecked")
  private void doRunAnnotationDrivenExtensionsForParameters(NodeInfo<?, ?> node) {
    if (node instanceof MethodInfo) {
      MethodInfo method = (MethodInfo) node;
      method.getParameters().forEach(parameterInfo ->
        Arrays.stream(parameterInfo.getAnnotations())
          .map(ann -> Pair.of(ann, getAnnotationDrivenExtension(ann)))
          .filter(annEx -> annEx.second() != null)
          .forEach(annEx -> annEx.second().visitParameterAnnotation(annEx.first(), parameterInfo))
      );
    }
  }
Runs global and local extensions for a spec.
spock-core/src/main/java/org/spockframework/runtime/ExtensionRunner.java