Why use Map's entrySet if the method doesn't use the Map's key, right?