def METHOD_NAME(self, creator_item):
    attr_defs = []
    creator_selected = False
    if creator_item is not None:
        creator_selected = True
        attr_defs = creator_item.pre_create_attributes_defs
    self._attributes_widget.set_attr_defs(attr_defs)
    attr_defs_available = len(attr_defs) > 0
    self._scroll_area.setVisible(attr_defs_available)
    self._empty_widget.setVisible(not attr_defs_available)
    self._empty_label.setVisible(creator_selected)
    self._no_creator_label.setVisible(not creator_selected)