// "Create function 'set' from usage" "true" class Foo { fun x (y: Foo>, w: java.util.ArrayList) { y["", w] = w } fun set(s: String, w: T, value: T) { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } }