title: Structural Search IntelliJ IDEA
body: <p>I want to perform a structural search from IntelliJ IDEA.
  My research is made up of two criteria:</p>
  <ol>
  <li>Find all classes with custom <strong>@CustomAnnotate</strong> annotation</li>
  </ol>
  <ul>
  <li>This annotation is placed exclusively on Repository springs; the result of this research will exclusively cite Repositories</li>
  </ul>
  <ol start="2">
  <li>Find a text corresponding to the name of an <code>org.springframework.data.repository.CrudRepository</code> method; for example <strong>findById</strong></li>
  </ol>
  <ul>
  <li>The result of this research will cite services calling for Repositories</li>
  </ul>
  <p>I can't combine the two searches at the same time. i.e. the Repositories called to perform a findById (search 2) must have the annotation @CustomAnnotate (search 1).</p>
  <p>I tried this: <code>$REPO$.$METHOD$($VARS$)</code></p>
  <p>With:</p>
  <ul>
  <li><code>$REPO$</code> = a reference filter on the first reference search which has been recorded.</li>
  <li><code>$METHOD$</code> = a type filter with &quot;findById&quot;</li>
  <li><code>$VAR$</code> = [0, ∞]</li>
  </ul>
  <p>The two criteria do not work together into my research, but they work independently.</p>
  <p>What solution is possible? With a script?</p>