private static void disposeSafe(@NotNull Collection<? extends Disposable> tasks) {
    for (Disposable task : tasks) {
      disposeSafe(task);
    }
  }
private static void disposeSafe(@NotNull Collection<? extends Disposable> tasks)