code: public static @NotNull <T> Class<T> wrap(@NotNull Class<T> type) {
          Class<?> result =
                 (type == boolean.class) ? Boolean.class
               : (type == byte.class)    ? Byte.class
               : (type == char.class)    ? Character.class
               : (type == short.class)   ? Short.class
               : (type == int.class)     ? Integer.class
               : (type == long.class)    ? Long.class
               : (type == float.class)   ? Float.class
               : (type == double.class)  ? Double.class
               : type;
  
          @SuppressWarnings("unchecked")
          Class<T> casted = (Class<T>) result;
          return casted;
      }
docs: Returns the corresponding wrapper type for a primitive type, or the type itself if it is not a primitive type.