// "Replace with 's.filter { it != c }'" "true" // WITH_RUNTIME class X { @Deprecated("", ReplaceWith("s.filter { it != c }")) fun oldFun(s: String): CharSequence = s.filter { it != c } val c = 'x' } fun foo(x: X?, s: String) { bar(x?.oldFun(s)) } fun bar(s: CharSequence?){}