private static @Nullable String threadIdBeforeResumeOrStep(@Nullable XSuspendContext context) {
    if (context instanceof PySuspendContext) {
      return ((PySuspendContext)context).getActiveExecutionStack().getThreadId();
    }
    else {
      return null;
    }
  }
private static @Nullable String threadIdBeforeResumeOrStep(@Nullable XSuspendContext context)