class X { operator fun invoke() {} } fun foo() { X().run { ~this() run { print(this()) // no highlighting. The receiver is from `run` here. } } } public inline fun T.run(block: T.() -> R): R = block()