'Initialize the tracked info/warning/error message state.'

def __initialize_widget_state(self, node, widget):

    for message_group in widget.message_groups:
        message = user_message_from_state(message_group)
        if message:
            node.set_state_message(message)
