title: Return value directly from CompletableFuture.thenAccept
body: <p>I am trying to return a list from my <code>CompletableFuture</code> like this:</p>
  
  <pre><code>public List&lt;Provider&gt; get() {
      CompletableFuture&lt;List&lt;Provider&gt;&gt; providersResponse = getSomeData();
      return providersResponse.thenAccept((List&lt;Provider&gt; providers) -&gt; {
          return providers;
      });
  }
  </code></pre>
  
  <p>It fails with "unexpected return type though. How can I return the result in an async way?</p>