“Variable is never assigned” warning in IntelliJ IDEA can be suppressed only "partially"
<p>Java EE + IntelliJ Idea 2016.3: I've written a class and declared a private field with a <code>@Inject</code> annotation. </p>

<p>I have successfully got rid of the "unused declaration" notification from the "inspection results" window by adding <code>javax.inject.Inject</code> to <em>settings -> editor -> inspections -> Java -> declaration redundancy -> unused declarations -> entry points -> annotations -> mark field as implicitly written when annotated by</em> (based on <a href="https://stackoverflow.com/questions/6762012/suppress-variable-is-never-assigned-warning-in-intellij-idea">this post</a>). </p>

<p>Unfortunately the field is still underlined and a yellow marker is present on the scroll bar. Do I configure this separately or am I doing something wrong?</p>