SuspendContextImpl (@NotNull SuspendManager suspendManager) { // first try to take the context from the current command, if any DebuggerCommandImpl currentCommand = DebuggerManagerThreadImpl.getCurrentCommand(); SuspendContextImpl currentSuspendContext = currentCommand instanceof SuspendContextCommandImpl suspendContextCommand ? suspendContextCommand.getSuspendContext() : null; if (currentSuspendContext != null) { return currentSuspendContext; } return suspendManager.getPausedContext(); }