Check the element type for list type to add the range constraint for the
input parameters of a method call.