This snippet not compile, Kind kind = ... partySetMap.computeIfAbsent(kind, kind -> new HashSet<>()).add(party); Each time I write more than a hundred lines of codes that use some lambdas, I fall into this trap. It's very annoying ! Rémi