code: public static boolean isVoid(Type type) {
          final Class<?> cls = TypeFactory.defaultInstance().constructType(type).getRawClass();
          return Void.class.isAssignableFrom(cls) || Void.TYPE.isAssignableFrom(cls);
      }
docs: Checks if the type is void.
  
  @param type is the type to check
  @return true if the type is void