How to find usages of a scala apply function in a class-instance in IntelliJ?
<p>If I call an apply method from an instance of a Scala class</p>

<pre><code>object Main {
  def main(args: Array[String]): Unit = {
    val a = new A(2)
    a(2)
    a(10)
  }

  class A(a: Int) {
    def apply(a: Int): A = new A(a)
  }
}
</code></pre>

<p>i am not able to find its usages with <em>Alt + F7</em> or Ctrl+click.</p>

<p><strike>Is there any way to find usages of a scala apply method in IntelliJ?</strike></p>

<hr>

<p><strong>EDIT:</strong> In the first rendition of this question I did not understand that this is only a problem for apply-method for instances of classes. It works for apply-method in companion objects, as @sebszyller demonstrated below.</p>

<p>This is probably a bug in IntelliJ. Closing the question.</p>