title: List::contains with comparator
body: <p>Is there any way (method, lambda, or elegant construct) to find an element in a list based on a given comparator?</p>
  
  <p>I wrote a method like this:</p>
  
  <pre><code>private static &lt;T&gt; boolean contains(List&lt;T&gt; list, T item, Comparator&lt;? super T&gt; comparator) {
      return list.stream()
              .anyMatch(listItem -&gt; comparator.compare(listItem, item) == 0
              );
  }
  </code></pre>
  
  <p>But I'm looking to replace it with something that would be more elegant.</p>
  
  <p>I don't want to add any dependency, so no Guava, "commons", etc. I'm really looking for a pretty way to do this in Java 8.</p>
  
  <p>EDIT: Some example of what I'd consider more elegant (here is the using code):</p>
  
  <pre><code>// sadly, this method doesn't exist
  // nor is there a static one in Collections
  // but maybe you can think of another way?
  if (list.containsSame(item, comparator)) {
      // ...
  }
  </code></pre>