void (String[] args) { System.out.println(testNestedScope(asList("a", "b", "c"))); System.out.println(testNestedScope2(asList("a", "b", "c"))); Map<String, List<String>> map = new HashMap<>(); map.put("", Arrays.asList("", "a", "b")); map.put("a", Arrays.asList("", "a", "b", "a")); map.put("b", Arrays.asList("", "a", "b")); map.put("c", Arrays.asList("", "a", "b")); System.out.println(testAnonymousConflictingVar(map)); System.out.println(testLambdaConflictingVar(map)); System.out.println(testLambdaNotConflictingVar(map)); }