Annotation inheritance check