title: Telling IntelliJ IDEA which methods not to identify as unused
body: <p>IntelliJ IDEA has a handy feature to detect unused methods and show them in grey, hinting a potential warning for dead code.</p>
  
  <p>Some methods, however, are not executed directly but via reflection. A good example would be <code>@RequestMapping</code>-annotated methods which are executed by Spring. IntelliJ has decent Spring integration hence it detects this annotation and does not mark such a method as unused.</p>
  
  <p>I have a tiny AJAX framework where I use my own annotation to point which method to execute based on certain HTTP request properties (very similar to what <code>@RequestMapping</code> is doing). Understandably, IntelliJ has no idea what does my annotation stand for and and marks such a method as unused, adding unnecessary noise.</p>
  
  <p>I was thinking of:</p>
  
  <ul>
  <li>annotating my annotation with another annotation, but are there any standard ones that would do the job without any extra effort?</li>
  <li>finding a particular setting in IntelliJ to identify custom annotation for marking methods as used, but this would require other team members to do the same, basically a pain.</li>
  </ul>
  
  <p>Can anyone suggest any ideas how to solve this problem?</p>