void () { ApplicationManager.getApplication().invokeLater(() -> { if (Disposer.isDisposed(this)) return; HgRemoteStatusUpdater statusUpdater = myVcs.getRemoteStatusUpdater(); if (statusUpdater == null) return; HgChangesetStatus status = statusUpdater.getStatus(myIsIncoming); boolean changesAvailable = status.getNumChanges() > 0; myCurrentIcon = changesAvailable ? myEnabledIcon : myDisabledIcon; myTooltip = changesAvailable ? "\n" + status.getToolTip() : HgBundle.message("no.changes.available"); if (myStatusBar != null) myStatusBar.updateWidget(ID()); }); }