I am developing a plugin which does some error highlighting in java source file when some specific restricted java apis are used. I am implementing LocalInspectionTool for that. This plugin works with only maven based projects.
To get the list of restricted apis, the plugin is dependent on a java library which usually part of maven dependencies in the target project.
The restricted api list library is compiled with Java 11 and the target JDK for maven project is also java 11. But as my plugin is in Java 8 due to bootJDK version in 2018.3, I can not leverage on the library packaged in the target maven project to find the restricted api list.
Unfortunately, I cannot recompile the library in Java 8 which provides restricted list api.
I would really appreciate any help / suggestion on this.
The question is how the code completion works in normal scenario for dependencies when the maven project sdk is java 11 and the IDE is running with java 8.