code: public static boolean isCollectionOfType(TypeName typeName, TypeName elementTypeName) {
  		return isAssignable(typeName, Collection.class)
  				&& isEquals(((ParameterizedTypeName) typeName).typeArguments.get(0), elementTypeName);
  	}
docs: Checks if is collection and if element type is the one passed as parameter.
  
  @param typeName
  the type name
  @param elementTypeName
  the element type name
  @return true, if is collection