Hey all. Is there some built in check to suggest replacing one class/function with another? This has surfaced several times on different projects where classes can have same name, but different package (usually custom version of some class present in some library). In android's Jetpack Compose this will have its uses too, because google advocates using e.g.
package my.project; fun TextField()
rather than
fun MyProjectTextField()
to differtiate this from built-in
anrdoidx.compose.material.TextField
.
So I'm about to write some rule which detekts usages of
com.google.TextField
and suggests replacing it with
my.project.TextField
, same for classes. And I thought maybe I missed some existing rule.