def METHOD_NAME(
    self, span_events: Optional[List[Event]]
) -> Optional[List]:
    annotations = self._extract_annotations_from_events(span_events)
    if annotations is None:
        encoded_annotations = None
    else:
        encoded_annotations = []
        for annotation in annotations:
            encoded_annotations.append(
                zipkin_pb2.Annotation(
                    timestamp=annotation["timestamp"],
                    value=annotation["value"],
                )
            )
    return encoded_annotations