void (@NotNull List<StackFrameItem> stack, DebugProcessImpl debugProcess) { StackFrameList list = new StackFrameList(debugProcess); list.setFrameItems(stack, () -> DebuggerUIUtil.invokeLater(() -> { JBPopup popup = JBPopupFactory.getInstance().createListPopupBuilder(list) .setTitle(JavaDebuggerBundle.message("select.stack.frame")) .setAutoSelectIfEmpty(true) .setResizable(false) .setItemChosenCallback(() -> list.navigateToSelectedValue(true)) .createPopup(); list.setSelectedIndex(1); popup.showInFocusCenter(); })); }