def METHOD_NAME(
    field: Union[Field, FragmentDefinition],
    events: Dict[str, IsFragment],
) -> Dict[str, IsFragment]:
    if (
        isinstance(field, FragmentDefinition)
        and field.type_condition
        and field.type_condition.name.value != "Event"
    ):
        events[field.type_condition.name.value] = IsFragment.FALSE
        return events
    if field.selection_set:
        for f in field.selection_set.selections:
            if isinstance(f, InlineFragment) and f.type_condition:
                events[f.type_condition.name.value] = IsFragment.FALSE
            if isinstance(f, FragmentSpread):
                events[f.name.value] = IsFragment.TRUE
        return events
    return events