def METHOD_NAME(self, newActiveIdx):
    if self._prevActive is not None:
        self._refreshCollapsedMarker(self._prevActive)
    self._refreshCollapsedMarker(newActiveIdx)
    self._prevActive = newActiveIdx