code: public static <E> ScopeProvider from(final LifecycleProvider<E> provider) {
      return () -> provider.lifecycle().compose(provider.bindToLifecycle()).ignoreElements();
    }
docs: Factory creating a {@link ScopeProvider} representation of a {@link LifecycleProvider}.
  
  <p>Example usage:
  
  <pre><code>
  Observable.just(1)
  .as(autoDisposable(RxLifecycleInterop.from(lifecycleProvider)))
  .subscribe(...)
  </code></pre>
  
  @param <E> the lifecycle event.
  @param provider the {@link LifecycleProvider}.
  @return a {@link ScopeProvider}