title: Mockito with Scala, any matcher resolved with multiple implementations
body: <p>In our Scala project we use Mockito for testing purposes.</p>
  
  <p>An <strong>annoying</strong> issue we have is that while using <code>any</code> matcher, it's always in <code>can't resolve symbol any</code> although it's not affect the code in builds or runtime.</p>
  
  <p>There are two <code>any</code> implementation in Mockito (2.12):</p>
  
  <pre><code>  def any[T](implicit evidence$11 : scala.reflect.ClassTag[T]) : T = { /* compiled code */ }
    def any[T]() : T = { /* compiled code */ }
  </code></pre>
  
  <p>How can we "help" Mockito understand what <code>any</code> he should use? </p>
  
  <p>For example:
  <a href="https://i.stack.imgur.com/KEVBf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KEVBf.png" alt="enter image description here"></a></p>