title: IntelliJ IDEA find usages of overriding method without finding sibling methods
body: <p>I have a parent class <code>P</code> with subclasses <code>A</code> and <code>B</code>.</p>
  
  <p>I would like to find all usages of a method <code>f</code> of <code>A</code>.</p>
  
  <p>So either <code>p.f()</code> or <code>a.f()</code> but not <code>b.f()</code>, because an instance <code>B b</code> cannot call <code>A.f</code>.</p>
  
  <p>I know I can find</p>
  
  <ul>
  <li><p>Calls directly to <code>A.f</code>. This misses:</p>
  
  <pre><code>P p = new A();
  p.f();
  </code></pre></li>
  <li><p>Calls to <code>P.f</code> and any override. This has too many false positives.</p></li>
  </ul>
  
  <p>I know there are always going to be false positives using only compile-time information, but there could be fewer.</p>