void (boolean showPopup) { DataManager.getInstance().getDataContextFromFocusAsync().onSuccess(context -> { IdeFrame frame = IdeFrame.KEY.getData(context); if (frame == null) { return; } StatusBar statusBar = frame.getStatusBar(); JComponent navBar = null; if (statusBar instanceof IdeStatusBarImpl) { navBar = ((IdeStatusBarImpl)statusBar).getWidgetComponent(IdeStatusBarImpl.NAVBAR_WIDGET_KEY); } if (navBar == null && frame instanceof IdeFrameEx) { navBar = ((IdeFrameEx)frame).getNorthExtension(IdeStatusBarImpl.NAVBAR_WIDGET_KEY); } if (navBar == null) { return; } Object panel = navBar.getClientProperty(NavBarRootPaneExtension.PANEL_KEY); if (panel instanceof StaticNavBarPanel navBarPanel) { NavBarVm vm = navBarPanel.getModel(); if (vm != null) { vm.selectTail(); if (showPopup) { vm.showPopup(); } } } else { ((NavBarPanel)panel).rebuildAndSelectLastDirectoryOrTail(showPopup); } }); }