docs: def has_annotation(self, annotation: str) -> bool:
          """Check if this annotation is defined."""
          return (
              self.has_enumerated_annotation(annotation) or
              self.has_regex_annotation(annotation) or
              self.has_local_annotation(annotation)
          )