The outer loop in the method doesn't need entrySet 

The other loop in the method doesn't need entrySet because it only uses the Map's values so a call to values() suffice.