presto-spi/src/main/java/io/prestosql/spi/predicate/Primitives.java/Primitives/unwrap
class Primitives:    public static <T> Class<T> unwrap(Class<T> type)
    {
        requireNonNull(type);

        // cast is safe: long.class and Long.class are both of type Class<Long>
        @SuppressWarnings("unchecked")
        Class<T> unwrapped = (Class<T>) WRAPPER_TO_PRIMITIVE_TYPE.get(type);
        return (unwrapped == null) ? type : unwrapped;
    }