code: public static Type getArrayComponentType(Type type) {
  		if (type instanceof Class) {
  			Class<?> clazz = (Class<?>)type;
  			return clazz.getComponentType();
  		} else if (type instanceof GenericArrayType) {
  			GenericArrayType aType = (GenericArrayType) type;
  			return aType.getGenericComponentType();
  		} else {
  			return null;
  		}
  	}
docs: If type is an array type, returns the type of the component of the array.
  Otherwise, returns null.