title: How to search for classes annotated with a given annotation in IntelliJ?
body: <p>I have a project where many classes have one and the same simple name, but are decorated with different annotations.</p>
  
  <p>For example:</p>
  
  <pre><code>package com.example.base;
  
  @Default
  public class ClassName { }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>package com.example.country;
  
  @SomeCountrySpecific
  public class ClassName extends com.example.base.ClassName { }
  </code></pre>
  
  <p>There are many classes like these within the project and all are EJB injected within other classes' constructors/setters.</p>
  
  <p>In IntelliJ, when I want to navigate to some class, I can type only the class name and the IDE finds all the classes and gives back a list of options. You can imagine that this lists often consists of more than 15-20 different classes and navigating and finding the desired one is difficult.</p>
  
  <p>However, I would like to open a class, which has a name equal to <code>ClassName</code> <strong>and</strong> is annotated with some annotation (like <code>@SomeCountrySpecific</code>).</p>
  
  <p>Is this possible in IntelliJ?</p>
  
  <p>Please note that renaming the sub-classes is not an option.</p>