we use IntelliJ inspections a lot and found them to be very reliable.
One inspection that we do not understand is the "Unused Declarations" - this inspection does not show injected declarations (e.g. @EJB) as unused.
Why is that so (it does not seem to be configurable in this regard).
In our case, all of these injections are indeed unwanted and we have not found a case where it is necessary to keep these declarations.
To us, it would be very useful to also show inejcted declarations as unused.
Hope someone can enlighten me :-)