private void addInterceptor(List<ConfineMetaClassChanges> annotations, IInterceptable interceptable) {
    interceptable.addInterceptor(new ConfineMetaClassChangesInterceptor(
      annotations
        .stream()
        .map(ConfineMetaClassChanges::value)
        .flatMap(Arrays::stream)
        .collect(toSet())));
  }
@author Luke Daley
@author Peter Niederwieser
spock-core/src/main/java/org/spockframework/runtime/extension/builtin/ConfineMetaClassChangesExtension.java