public static void switchToThreadInSuspendAllContext(@NotNull SuspendContextImpl suspendAllContext, @NotNull ThreadReferenceProxyImpl threadProxy) {
    assert suspendAllContext.getSuspendPolicy() == EventRequest.SUSPEND_ALL;
    DebugProcessImpl debugProcess = suspendAllContext.getDebugProcess();
    debugProcess.getManagerThread().schedule(new SuspendContextCommandImpl(suspendAllContext) {
      @Override
      public void contextAction(@NotNull SuspendContextImpl c) {
        DebuggerSession session = debugProcess.getSession();
        DebuggerContextImpl debuggerContext = DebuggerContextImpl.createDebuggerContext(session, suspendAllContext, threadProxy, null);
        DebuggerInvocationUtil.invokeLater(debugProcess.getProject(),
                                           () -> session.getContextManager().setState(debuggerContext, DebuggerSession.State.PAUSED, DebuggerSession.Event.CONTEXT, null));
      }
    });
  }
public static void switchToThreadInSuspendAllContext(@NotNull SuspendContextImpl suspendAllContext, @NotNull ThreadReferenceProxyImpl threadProxy)