Build a KeyType wrapping the given type.
KeyType
a corresponding reference which may be passed into KeyType-accepting methods
4.3.12
a generic type (possibly obtained via reflection, e.g. from java.lang.reflect.Method.getGenericReturnType)