fun testFun(x: Any): Unit { fun extracted() { //comment if (x is String) { } println() } extracted() }