while (candidate instanceof DecoratedDeclaration) {
//unwrap the candidate.
candidate = ((DecoratedDeclaration) candidate).getDelegate();
}
if (decls.overrides((MethodDeclaration) candidate, (MethodDeclaration) unwrappedMethod)) {
return true;
}
}
declaringType = ((ClassDeclaration) declaringType).getSuperclass().getDeclaration();