title: Is there any way of making IntelliJ IDEA recognizing Dagger 2 generated classes in a Java project?
body: <p><strong>Context</strong></p>
  
  <p>I have started a personal project in java with <code>Gradle</code> as the build system and I want to use Dagger 2 as a DI. The main reason of doing that is to get used to that library and be able to use it easily in bigger projects.</p>
  
  <p><strong>What have I tried</strong></p>
  
  <p>I've managed to make the <a href="https://github.com/google/dagger/tree/master/examples/simple" rel="noreferrer">Google sample</a> runs on IntelliJ IDEA</p>
  
  <p><strong>Problem</strong></p>
  
  <p>IntelliJ IDEA keeps telling me that it cannot resolve the generated class (in this case <code>DaggerCoffeeApp_Coffee</code>). It's a bit annoying not to know if the written code is correct (specially when you are learning to use Dagger 2).</p>
  
  <p>All java classes are the same as the <a href="https://github.com/google/dagger/tree/master/examples/simple" rel="noreferrer">Google sample</a>. Here is my <code>build.gradle</code> file:</p>
  
  <pre><code>apply plugin: 'java'
  
  repositories {
      mavenCentral()
  }
  
  dependencies {
      testCompile group: 'junit', name: 'junit', version: '4.12'
  
      compile 'com.google.dagger:dagger:2.0.1'
      compile 'com.google.dagger:dagger-compiler:2.0.1'
  }
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Is there any way to make IntelliJ IDEA recognize <code>DaggerCoffeeApp_Coffee</code> as a generated class (and so make it possible to go to its implementation by `ctrl + left click)? </p>