void (ServiceEventListener.@NotNull ServiceEvent e) { if (e.type == ServiceEventListener.EventType.UNLOAD_SYNC_RESET) { AppUIExecutor.onUiThread().expireWith(ServiceTreeView.this).submit(() -> { resetTreeModel(); updateNavBar(); }); updateLastSelection(); } else { updateNavBar(); ServiceViewItem lastSelection = myLastSelection; if (lastSelection != null && lastSelection.getRootContributor().getClass().equals(e.contributorClass)) { updateLastSelection(); } else { selectFirstItemIfNeeded(); } } updateSelectionPaths(); }