Say, I have a method:
public static Collection addToCollection(T element, Collection collection) { collection.add(element);
Collections.emptyList() returns a List which is passed through your addToCollection() method. And since Object is not Integer, this fails.
Collections.emptyList()
List
addToCollection()