isAnnotationType to use cached version of isInheritor.