// WITH_RUNTIME // INTENTION_TEXT: "Replace with 'toMutableSet()'" import java.util.HashSet fun foo(map: Map): MutableCollection { val result = HashSet() for (s in map.values) { result.add(s) } return result }