public static IMethodBinding findOverriddenMethod(IMethodBinding overriding,boolean testVisibility){
  List<IMethodBinding> findOverriddenMethods=findOverriddenMethods(overriding,testVisibility,true);
  if (findOverriddenMethods.isEmpty()) {
    return null;
  }
  return findOverriddenMethods.get(0);
}

public static IMethodBinding findOverriddenMethod ( IMethodBinding overriding , boolean testVisibility ) { List < IMethodBinding > findOverriddenMethods = findOverriddenMethods ( overriding , testVisibility , true ) ; if ( findOverriddenMethods . isEmpty ( ) ) { return null ; } return findOverriddenMethods . get ( 0 ) ; }
finds the method that is overridden by the given method . the search is bottom - up , so this returns the nearest defining / declaring method .
