public void selectUpperNavigatableStackFrame(@NotNull final XDebugSession session) {
final XStackFrame frameToStopAt = myActiveExecutionStack.getFrameToStopAt();
if (frameToStopAt != null && frameToStopAt != myActiveExecutionStack.getTopFrame()) {
session.addSessionListener(new XDebugSessionAdapter() {
@Override
public void stackFrameChanged() {
if (session.getCurrentStackFrame() != frameToStopAt) {
session.removeSessionListener(this);
session.setCurrentStackFrame(myActiveExecutionStack, frameToStopAt, false);