String hookClass = null;
for (int i = 0; i < annotations.length; i++) {
if (!(annotations[i] instanceof Hook)) {
continue;
}
Hook hook = (Hook) annotations[i];
if (hook.type() != hookType) {
continue;
}
hookClass = hook.hook();
}
if (hookClass == null) {
return null;
}