Java Streams and IDE Weirdness (part 2)

I recently posted about some IDE weirdness when trying to use java streams. Not long after I encountered some more! This time using Google’s Guava collectors, specifically ImmutableMap.

Immutability is the concept of having objects that cannot change. It can add confidence to your programming approach by letting you know objects will always be consistent — no values will change out from under you because someone else has a reference to the object.

But yet again you get some weirdness by pushing some dynamic typing and functions as first…