get Declared Method Quietly
fun getDeclaredMethodQuietly(className: String, methodName: String, vararg parameterTypes: Class<*>?): Method?
Finds a declared (private/protected) method of a class. If it's not found in the class, it will iterate through parents until it is found or there are no more parents.
Given a class: Thing(type: String)
Constructs via: val method = getDeclaredMethodQuietly("foo.bar.Thing", "attachBaseContext", listOf(Context::class.java))
Parameters
class Name
The full name of the class
method Name
The name of the method
parameter Types
An array of Classes of the method parameters