diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java index da58d5663d5a..284ac0b95dc1 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/handlers/XDebuggerSmartStepIntoHandler.java @@ -206,7 +206,7 @@ public class XDebuggerSmartStepIntoHandler extends XDebuggerSuspendedActionHandl } } - data.select(ContainerUtil.getFirstItem(data.myVariants)); + data.myVariants.stream().filter(v -> v.myVariant.equals(variants.get(0))).findFirst().ifPresent(data::select); session.updateExecutionPosition(); IdeFocusManager.getGlobalInstance().requestFocus(editor.getContentComponent(), true);