static <T> Try<T> apply(SupplierThatThrows<T> supplier) {
    try {
      return success(supplier.get());
    } catch (Exception e) {
      return failure(e);
    }
  }
Calls {@code supplier} and wraps the result in {@link Success} if successful, or {@link Failure} if it throws an
exception.
planetiler-core/src/main/java/com/onthegomap/planetiler/util/Try.java