public static Class<?> erase(Type type) {
    return GenericTypeReflector.erase(type);
  }
Returns the erasure of the given type.
spock-core/src/main/java/org/spockframework/util/GenericTypeReflectorUtil.java