Broke the law of Demeter - may she forgive me.

Don't fiddle with objects you don't control. In this case a method
added a value to a map it didn't create; and as we all know, maps
don't always support adding values, do they...