private boolean overrides(ExecutableElement e,Class<?> clazz,String method){
  TypeElement clazzElt=elements.getTypeElement(clazz.getCanonicalName());
  assert clazzElt != null;
  for (  ExecutableElement elt : ElementFilter.methodsIn(clazzElt.getEnclosedElements())) {
    if (elt.getSimpleName().contentEquals(method) && elements.overrides(e,elt,clazzElt)) {
      return true;
    }
  }
  return false;
}

private boolean overrides ( ExecutableElement e , Class < ? > clazz , String method ) { TypeElement clazzElt = elements . getTypeElement ( clazz . getCanonicalName ( ) ) ; assert clazzElt != null ; for ( ExecutableElement elt : ElementFilter . methodsIn ( clazzElt . getEnclosedElements ( ) ) ) { if ( elt . getSimpleName ( ) . contentEquals ( method ) && elements . overrides ( e , elt , clazzElt ) ) { return true ; } } return false ; }
determines whether or not the given element overrides the named method in the named class .
