code: public static boolean isBoolean( Class clazz ) {
        return clazz != null
              && (Boolean.TYPE.isAssignableFrom( clazz ) || Boolean.class.isAssignableFrom( clazz ));
     }
docs: Tests if Class represents a Boolean or primitive boolean