void (@NotNull InstancesView view, @NotNull XDebugSession session, String className) { final StackFrameList list = new StackFrameList(myDebugProcess); list.addListSelectionListener(e -> list.navigateToSelectedValue(false)); new DoubleClickListener() { @Override protected boolean onDoubleClick(@NotNull MouseEvent event) { list.navigateToSelectedValue(true); return true; } }.installOn(list); final InstancesWithStackFrameView instancesWithStackFrame = new InstancesWithStackFrameView( session, myInstancesTree, list, className ); view.add(instancesWithStackFrame.getComponent(), BorderLayout.CENTER); }