code: public static boolean isVoid(Type t)
    {
      return Void.TYPE.equals(t) || Void.class.equals(t);
    }
docs: Test if given type is void. Returns true if type is {@link Void#TYPE} or {@link Void} class, i.e. is
  <code>void</code> keyword or <code>Void</code> class.
  
  @param t type to test for void.
  @return true if requested type is void.