I want to call Collectors.summarizingInt on a set with Integers. Examples I have seen so far are on a Set with (say) Employees and are then called as collect(Collecters.summorizingInt(Employee::getWage)). For the bare Integers summorizingInt needs an argument so I can do collect(Collectors.summarizingInt((i) -> i)) but it feels a bit strange to provide a self mapper.
Are there alternatives?