void (@NotNull SuspendContextImpl suspendContext) { LOG.assertTrue(suspendContext.myVotesToVote > 0); suspendContext.myVotesToVote--; if (LOG.isDebugEnabled()) { LOG.debug("myVotesToVote = " + suspendContext.myVotesToVote); } if (suspendContext.myVotesToVote == 0) { if (suspendContext.myIsVotedForResume) { // resume in a separate request to allow other requests be processed (e.g. dependent bpts enable) myDebugProcess.getManagerThread().schedule(PrioritizedTask.Priority.HIGH, () -> resume(suspendContext)); } else { LOG.debug("vote paused"); myDebugProcess.logThreads(); myDebugProcess.cancelRunToCursorBreakpoint(); if (!Registry.is("debugger.keep.step.requests")) { ThreadReferenceProxyImpl thread = suspendContext.getThread(); myDebugProcess.deleteStepRequests(thread != null ? thread.getThreadReference() : null); } notifyPaused(suspendContext, true); } } }