static Class declaringClassOfMethod(O o, S name, O... args) { Method m = findMethod(o, name, args); ret m?.getDeclaringClass(); }