contribute ImplicitUsageProvider

i have components that are created by framework and injected by reflection. It is something similar to code generated by swing gui designer. I don't want to use @Inect or other annotation for each component and want to have inspection warningn only if component is not used (similar behaviour to code created by swing gui designer)
Can I write plugin where add my own implementation of com.intellij.codeInsight.daemon.ImplicitUsageProvider ?

Original message URL:

1 comment
Comment actions Permalink


yes, this is the right approach. Simply implement com.intellij.codeInsight.daemon.ImplicitUsageProvider#isImplicitUsage to achieve this behaviour.

- Yann


Please sign in to leave a comment.