void (@NotNull StatusBar statusBar) { super.install(statusBar); myConnection.subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerListener() { @Override public void selectionChanged(@NotNull FileEditorManagerEvent event) { requestUpdate(); } @Override public void fileOpened(@NotNull FileEditorManager source, @NotNull VirtualFile file) { requestUpdate(); } }); myUpdateAlarm = new Alarm(this); new ClickListener() { @Override public boolean onClick(@NotNull MouseEvent e, int clickCount) { requestUpdate(); tryShowPopup(); return true; } }.installOn(myComponent.get(), true); update(); }