def METHOD_NAME(self):
    app.qApp.setOverrideCursor(Qt.WaitCursor)
    self.clear()
    mainwindow = self.parentWidget()
    for a in GitBranchGroup.instance(mainwindow).actions():
        self.addAction(a)
    app.qApp.restoreOverrideCursor()