public V checkBaseClasses(Class c) {
        for (Class base = c.getSuperclass(); base != Object.class; base = base.getSuperclass()) {
            V val = lookup.valAt(base);
            if (val != null) return val;
        }
        return null;
    }