import kotlin.reflect.KProperty // "Create member function 'getValue', function 'setValue'" "true" class F { fun getValue(x: X, property: KProperty<*>): Int { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } fun setValue(x: X, property: KProperty<*>, i: Int) { throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates. } } class X { var f: Int by F() }