Index: trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java
===================================================================
--- trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java	(revision 17514)
+++ trunk/src/org/openstreetmap/josm/data/osm/NodeGraph.java	(revision 17515)
@@ -367,5 +367,5 @@
         TreeMap<Integer, Set<Node>> sortedMap = new TreeMap<>(Comparator.reverseOrder());
         for (Entry<Node, Integer> e : counters.entrySet()) {
-            sortedMap.computeIfAbsent(e.getValue(), LinkedHashSet::new).add(e.getKey());
+            sortedMap.computeIfAbsent(e.getValue(), x -> new LinkedHashSet<>()).add(e.getKey());
         }
         LinkedHashSet<Node> result = new LinkedHashSet<>();
