code: public static String getTypeName(Type type) {
  		if(type instanceof Class) {
  			Class<?> clazz = (Class<?>) type;
  			return clazz.isArray() ? (getTypeName(clazz.getComponentType()) + "[]") : clazz.getName();
  		} else {
  			return type.toString();
  		}
  	}
docs: Returns the display name of a Type.