title: JSoup: no instances of type variables exist so that String conforms to Element
body: <p>I'm using JSoup to parse a webpage.</p>
  
  <p>This is my code:</p>
  
  <pre><code>List&lt;Element&gt; nodes = inodes.stream()
                      .filter(n -&gt; n.child(0).text().contains("hello"))
                      .map(n -&gt; n.data())
                      .collect(Collectors.toList());
  </code></pre>
  
  <p>When I run it I get this error:</p>
  
  <pre><code>        equality constraints: Element
      lower bounds: String
    where T is a type-variable:
      T extends Object declared in method &lt;T&gt;toList()
  </code></pre>
  
  <p>How do I solve this?</p>