def setHighlightNodes(self, drawNodes, intensities=None):
        self.highlightIntensities = intensities
        oldHighlightNodes = self.highlightNodes
        self.highlightNodes = drawNodes
        for drawNode in drawNodes+oldHighlightNodes:
            drawNode.update()
Remove existing item and append additional item.
dataset/ETHPy150Open andrew-gardner/dependsworkflow/depends/depends_graphics_widgets.py/SceneWidget.setHighlightNodes--crossover with--dataset/ETHPy150Open edgewall/trac/trac/ticket/tests/batch.py/BatchModifyTestCase.test_change_list_add_remove