IntelliJ file reference file not found
<p>I have been using IntelliJ Idea for a while now, but I have always had a problem with the following: </p>

<p><code>Show Intention Actions (or Option + Enter) &gt; Inject Language/Reference &gt; File Reference</code></p>

<p>Whenever I try to use this, it acts like the root directory is the same directory as the Java class. However, the way I have IntelliJ set up is so the root directory for the program is the project directory. </p>

<p>This means that whenever I try to inject a file reference, I can not get the file completion, and I get an error but the code still compiles.</p>

<p>How can I make the file reference feature use the project root for its base directory?</p>