def METHOD_NAME(self, rows: list):
    for row in reversed(rows):
        try:
            self.messages.insert(max(rows) + 1, copy.deepcopy(self.messages[row]))
        except Exception as e:
            logger.error("Duplicating line ", str(e))
    self.qt_signals.line_duplicated.emit()