check annotation inheritance instead of equality, required for annotation search using base type