void (@NotNull MessageBusConnection connection) { super.registerCustomListeners(connection); connection.subscribe(VcsRepositoryManager.VCS_REPOSITORY_MAPPING_UPDATED, () -> updateLater()); connection.subscribe(HgVcs.STATUS_TOPIC, (project, root) -> updateLater()); connection.subscribe(HgVcs.REMOTE_TOPIC, (project, root) -> updateLater()); connection.subscribe(HgVcs.INCOMING_OUTGOING_CHECK_TOPIC, new HgWidgetUpdater() { @Override public void update() { updateLater(); } }); connection.subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerListener() { @Override public void fileOpened(@NotNull FileEditorManager source, @NotNull VirtualFile file) { updateLater(); } @Override public void fileClosed(@NotNull FileEditorManager source, @NotNull VirtualFile file) { updateLater(); } @Override public void selectionChanged(@NotNull FileEditorManagerEvent event) { updateLater(); } }); }