private boolean shouldApplyContext(DebuggerContextImpl context) {
    SuspendContextImpl suspendContext = context.getSuspendContext();
    if (getSession().getSuspendContext() instanceof SuspendContextImpl currentContext) {
      if (suspendContext == null || suspendContext.equals(currentContext)) {
        JavaExecutionStack currentExecutionStack = currentContext.getActiveExecutionStack();
        return currentExecutionStack == null || !Comparing.equal(context.getThreadProxy(), currentExecutionStack.getThreadProxy());
      }
    }
    return true;
  }
private boolean shouldApplyContext(DebuggerContextImpl context)