This likely applies to any recipe that updates a name that is escapable such as ChangeMethodName.
@Test
void changeToEscapedImport() {
rewriteRun(
spec -> spec.recipe(new ChangeType("a.b.Original", "x.y.`Target`", true)),
kotlin(
"""
package a.b
class Original
"""),
kotlin(
"""
import a.b.Original
class A {
val type : Original = Original()
}
""",
"""
import x.y.`Target`
class A {
val type : `Target` = `Target`()
}
"""
)
);
}
This likely applies to any recipe that updates a name that is escapable such as ChangeMethodName.