title: Trying to convert a Try<List<Message>> to a Try<List<SummarizedMessage>> using Java Vavr
body: <p>I'm able to &quot;solve&quot; this with the following (ugly and smelly) code:</p>
  <pre><code>List&lt;Message&gt; messages = messagesRepository.findAll().get();
  
  return Try.success(
                      messages
                      .stream()
                      .map(m -&gt; new SummarizedMessage(m.destination(), m.title(), m.date()))
                      .toList()
              );
  </code></pre>
  <p>But how can I avoid this <code>get()</code> and <code>Try.success()</code>?</p>