easy way to flag library functions as deprecated / forbidden in android studio
I have a mixed Java / Kotlin project in Android studio with the usual bunch of androix libraries.
Is there an easy way (short of writing custom lint/detekt/ktlint rules) to essentially deprecate certain usages of third party libraries? Assuming I have no way of actually changing the code in the library itself.
For example, the library has a method foo, I'd like all usages of that method to be flagged and break the build.