void (XExecutionStack executionStack, @NotNull XDebugSession session, @Nullable XStackFrame frameToSelect, boolean refresh) { if (mySelectedStack != null) { withCurrentBuilder(StackFramesListBuilder::stop); } mySelectedStack = executionStack; if (executionStack != null) { mySelectedFrameIndex = myExecutionStacksWithSelection.getInt(executionStack); StackFramesListBuilder builder = getOrCreateBuilder(executionStack, session); builder.setRefresh(refresh); builder.setToSelect(frameToSelect != null ? frameToSelect : mySelectedFrameIndex); myListenersEnabled = false; boolean selected = builder.initModel(myFramesList.getModel()); myListenersEnabled = !builder.start() || selected; } }