docs: private void disposeTasks(Collection<Runnable>... tasks) {
          for (Collection<Runnable> task : tasks) {
              for (Runnable runnable : task) {
                  if (runnable instanceof Disposable) {
                      ((Disposable) runnable).dispose();
                  }
              }
          }
      }