if (useHook) {
if (useHook && !TypeUtils.isInterface(access)) {
    public void end_class() {        if (useHook) {            if (hook != null && !seenStatic) {                CodeEmitter e = begin_static();                e.return_value();                e.end_method();            }            if (seenStatic) {                getStaticHook(); // make sure hook is not null                hook.return_value();                hook.end_method();                ((ClassRecorder)rec.cv).generateMethod(STATIC_HOOK, raw);            }        }        raw.visitEnd();        cv = raw = null; // for safety    }