private void removeOverriddenMethod(ExecutableElement method) {
        TypeElement overriddenClass = utils.overriddenClass(method);
        if (overriddenClass != null) {
            for (int i = 0; i < methlist.size(); i++) {
                TypeElement te = utils.getEnclosingTypeElement(methlist.get(i));
                if (te == overriddenClass || utils.isSubclassOf(overriddenClass, te)) {
                    methlist.remove(i);  // remove overridden method
                    return;
                }
            }
        }
    }
private void removeOverriddenMethod ( ExecutableElement method ) { TypeElement overriddenClass = utils . overriddenClass ( method ) ; if ( overriddenClass != null ) { for ( int i = 0 ; i < methlist . size ( ) ; i ++ ) { TypeElement te = utils . getEnclosingTypeElement ( methlist . get ( i ) ) ; if ( te == overriddenClass || utils . isSubclassOf ( overriddenClass , te ) ) { methlist . remove ( i ) ; return ; } } } }
Search in the method list and check if it contains a method which
is overridden by the method as parameter.  If found, remove the
overridden method from the method list.

@param method Is this method overriding a method in the method list.