@ApiStatus.Internal
  public static @Nullable SuspendContextImpl getPausedSuspendingContext(@NotNull SuspendManager suspendManager,
                                                                        @NotNull ThreadReferenceProxyImpl thread) {
    List<SuspendContextImpl> pausedContexts = suspendManager.getPausedContexts();
    SuspendContextImpl context = ContainerUtil.find(pausedContexts, suspendContext ->
      suspendContext.getEventThread() == thread && suspendContext.suspends(thread)
    );
    if (context != null) {
      return context;
    }
    return ContainerUtil.find(pausedContexts, suspendContext -> suspendContext.suspends(thread));
  }
@ApiStatus.Internal
  public static @Nullable SuspendContextImpl getPausedSuspendingContext(@NotNull SuspendManager suspendManager,
                                                                        @NotNull ThreadReferenceProxyImpl thread)