private boolean isInherited(Type annotype) {
        for (Attribute.Compound anno : annotype.tsym.getAnnotationMirrors()) {
            if (anno.type.tsym == syms.inheritedType.tsym)
                return true;
        }
        return false;
    }