void () { ApplicationManager.getApplication().invokeLater(() -> { ProjectFrameHelper frame = WindowManagerEx.getInstanceEx().getFrameHelper(myProject); if (frame != null) { // GitToolbarWidgetFactory handles update in a new UI if (ExperimentalUI.isNewUI()) { frame.rootPane.updateMainMenuActions(); } else { frame.updateView(); } } }, myProject.getDisposed()); }