src/main/java/org/eiichiro/bootleg/Types.java
public static Class<?> getRawType(Type type) {
		if (type instanceof ParameterizedType) {
			ParameterizedType parameterizedType = (ParameterizedType) type;
			return (Class<?>) parameterizedType.getRawType();
		} else if (type instanceof Class<?>) {
			Class<?> clazz = (Class<?>) type;
			return (clazz.isArray()) ? null : clazz;
		} else {
			return null;
		}
	}
public static Class<?> getRawType(Type type) {
		if (type instanceof ParameterizedType) {
			ParameterizedType parameterizedType = (ParameterizedType) type;
			return (Class<?>) parameterizedType.getRawType();
		} else if (type instanceof Class<?>) {
			Class<?> clazz = (Class<?>) type;
			return (clazz.isArray()) ? null : clazz;
		} else {
			return null;
		}
	}
Returns the raw type of the specified type.
This method supports {@code ParameterizedType} or raw {@code Class}
(just returns it directly). The other types such as array type are not
supported. If the specified 'type' is not supported, this method returns
<code>null</code>.

@param type The type to be tested.
@return The raw type of the specified type.