public static Surrogate unwrapWrappedType(Surrogate type) {
    if ((type != null) &&
        ((type.surrogateValue != null) &&
         (Stella_Object.isaP(type.surrogateValue, Logic.SGT_STELLA_CLASS) &&
          Surrogate.subtypeOfP(type, Logic.SGT_STELLA_LITERAL_WRAPPER)))) {
      type = Surrogate.wrappedTypeToType(type);
    }
    return (type);
  }