code: public static void isKindOf(Type parameter, Type typeToMatch, String name) {
  		if (!Types.isKindOf(parameter, typeToMatch)) {
  			throw new IllegalArgumentException(Strings.format("%s is not %s.", name, typeToMatch));
  		}
  	}
docs: Test if parameter is of requested type and throw exception if not.
  
  @param parameter invocation parameter,
  @param typeToMatch type to match,
  @param name the name of invocation parameter.
  @throws IllegalArgumentException if parameter is not of requested type.