Generalized version of 'MethodUtils'