void (@Nullable String branchName) { if (branchName != null) { ApplicationManager.getApplication().invokeLater(() -> { if (myProject.isDisposed()) return; myProject.getMessageBus().syncPublisher(BranchChangeListener.VCS_BRANCH_CHANGED).branchHasChanged(branchName); }); } }