hasAnnotation

Returns true if this element is annotated with A.

The search is breadth-first and considers meta-annotations.