// TODO use annotated item?
for (Type type : getDeclaringBean().getTypes()) {
// TODO: deal with parameterized types!
if (type instanceof Class<?>) {
try {
AccessController.doPrivileged(new GetMethodAction((Class<?>) type, method.getName(), method.getParameterTypesAsArray()));
methodDeclaredOnTypes = true;
break;
} catch (PrivilegedActionException ignored) {
}
}