question: private boolean isMethodContained ( Method m , List < Method > wrapperMethods ) { String name = m . getName ( ) ; Class < ? > [ ] paramTypes = m . getParameterTypes ( ) ; Class < ? > returnType = m . getReturnType ( ) ; for ( Method wm : wrapperMethods ) { if ( name . equals ( wm . getName ( ) ) && Arrays . equals ( paramTypes , wm . getParameterTypes ( ) ) && returnType == wm . getReturnType ( ) ) { return true ; } } return false ; }
target:  Returns true it the passed method is contained in the also passed list of methods by also comparing matching parameters.