void () { ApplicationManager.getApplication().invokeLater(() -> { if (myProject.isDisposed()) return; if (myConnection == null) { myConnection = myProject.getMessageBus().connect(this); myConnection.subscribe(GitRepository.GIT_REPO_CHANGE, this); myConnection.subscribe(GitAuthenticationListener.GIT_AUTHENTICATION_SUCCESS, this); } updateBranchesWithOutgoing(); updateIncomingScheduling(); }); }