code: public static void validateLambdaType(Class<?> baseClass, Type t) {
  		if (!(t instanceof Class)) {
  			return;
  		}
  		final Class<?> clazz = (Class<?>) t;
  
  		if (clazz.getTypeParameters().length > 0) {
  			throw new InvalidTypesException("The generic type parameters of '" + clazz.getSimpleName() + "' are missing. "
  				+ "In many cases lambda methods don't provide enough information for automatic type extraction when Java generics are involved. "
  				+ "An easy workaround is to use an (anonymous) class instead that implements the '" + baseClass.getName() + "' interface. "
  				+ "Otherwise the type has to be specified explicitly using type information.");
  		}
  	}
docs: Checks whether the given type has the generic parameters declared in the class definition.
  
  @param t type to be validated