<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inplace_delete_message( message_queue: List[SendMessageEvent], state_change: Union[ReceiveDelivered, ReceiveProcessed], ) -> None: """ Check if the message exists in queue with ID `queueid` and exclude if found."""

    for message in list(message_queue):
        message_found = (
            message.message_identifier == state_change.message_identifier and
            message.recipient == state_change.sender
        )
        if message_found:
            message_queue.remove(message)