def METHOD_NAME(self):
    # current_row = self.currentRow()
    self.clearContents()
    self.items = [QStateTableItem(f) for f in self.states]
    items_count = len(self.items)
    self.setRowCount(items_count)
    for idx, item in enumerate(self.items):
        for i, it in enumerate(item.widgets()):
            self.setItem(idx, i, it)
    # if 0 <= current_row < len(self.items):
    #    self.setCurrentItem(current_row, 0)