public static void disposeQuietly(Disposable... disposables) {
    Arrays.stream(disposables)
        .forEach(
            disposable -> {
              try {
                if (disposable != null) {
                  disposable.dispose();
                }
              } catch (RuntimeException e) {
                // Suppress any exceptions during disposal
              }
            });
  }
public static void disposeQuietly ( Disposable ... disposables ) { Arrays . stream ( disposables ) . forEach ( disposable -> { try { if ( disposable != null ) { disposable . dispose ( ) ; } } catch ( RuntimeException e ) { } } ) ; }
Calls the {@link Disposable#dispose()} method if the instance is not null. If any exceptions
are thrown during disposal, suppress them.

@param disposables the {@link Disposable}s to dispose