def METHOD_NAME(self, q: OptionallyAnnotatedQ) -> "FilterBuilder":
    """
    Adds a Q or AnnotatedQ filter into this builder to be joined together with
    existing filters based on the builders `filter_type`.
    Annotations on provided AnnotatedQ's are merged together with any previously
    supplied annotations via dict unpacking and merging.
    :param q: A Q or Annotated Q
    :return: The updated FilterBuilder with the provided filter applied.
    """
    if isinstance(q, AnnotatedQ):
        self._annotate(q.annotation)
        self._filter(q.q)
    else:
        self._filter(q)
    return self