import java.util.* internal class A { fun foo(set: MutableSet) { bar(set) } fun bar(collection: MutableCollection) { collection.add("a") } }