private boolean isHookMethod ( TypeElement component , ExecutableElement method , Set < ExecutableElement > hookMethodsFromInterfaces ) { if ( hasAnnotation ( method , HookMethod . class ) ) { validateHookMethod ( method ) ; return true ; } for ( ExecutableElement hookMethodsFromInterface : hookMethodsFromInterfaces ) { if ( elements . overrides ( method , hookMethodsFromInterface , component ) ) { return true ; } } return false ; }
Return true of the given method is a proxy method