def METHOD_NAME(self, current_index, previous_index):
    """Loads entity metadata for selected object or relationship.
    Args:
        current_index (QModelIndex): currently selected index in object/relationship tree
        previous_index (QModelIndex): unused
    """
    self._item_metadata_table_view.setEnabled(False)
    self._item_metadata_table_model.clear()
    if not current_index.isValid():
        return
    item = current_index.model().item_from_index(current_index)
    if not isinstance(item, (ObjectItem, RelationshipItem, MemberObjectItem)):
        return
    self._item_metadata_table_model.set_entity_ids(item.db_map_ids)
    self._item_metadata_table_view.setEnabled(True)