public static String getTypeName(Type type) {
    return GenericTypeReflector.getTypeName(type);
  }
Returns the display name of a Type.
spock-core/src/main/java/org/spockframework/util/GenericTypeReflectorUtil.java