def METHOD_NAME(self, data: bytes):
    events = super().METHOD_NAME(data)
    ret = []
    for event in events:
        if isinstance(event, h2.events.WindowUpdated):
            if event.stream_id == 0:
                self.connection_window_updated()
            else:
                self.stream_window_updated(event.stream_id)
            continue
        elif isinstance(event, h2.events.RemoteSettingsChanged):
            if (
                h2.settings.SettingCodes.INITIAL_WINDOW_SIZE
                in event.changed_settings
            ):
                self.connection_window_updated()
        elif isinstance(event, h2.events.StreamReset):
            self.stream_buffers.pop(event.stream_id, None)
        elif isinstance(event, h2.events.ConnectionTerminated):
            self.stream_buffers.clear()
        ret.append(event)
    return ret