def METHOD_NAME(self, protocol: ProtocolAnalyzer):
    assert self.is_group
    if protocol is None:
        return False
    for child in self.children:
        if child.protocol == protocol:
            child.setParent(None)
            return True
    return False