Make NestedSet#toListWithTimeout public.

PiperOrigin-RevId: 301613042
diff --git a/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSet.java b/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSet.java
index 04560d7..df5071d 100644
--- a/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSet.java
+++ b/src/main/java/com/google/devtools/build/lib/collect/nestedset/NestedSet.java
@@ -331,7 +331,7 @@
    * <p>Note that the timeout only applies to blocking for the deserialization future to become
    * available. The actual list transformation is untimed.
    */
-  ImmutableList<E> toListWithTimeout(Duration timeout)
+  public ImmutableList<E> toListWithTimeout(Duration timeout)
       throws InterruptedException, TimeoutException {
     Object actualChildren;
     if (children instanceof ListenableFuture) {