I have written a GlobalInspectionTool that run a SonarQube analysis and create ProblemDescriptor for each SonarQube issue. When creating the ProblemDescriptor the only possibility is to customize ProblemHighlightType but it seems to only affect "severity" icon in the Inspection Results view.
I would like to also have some visual feedback on the code, for example highlight lines with issues.
I discovered the ExternalAnnotator API but it seems that I will need to reimplement all my logic of running a SonarQube analysis. And because SonarQube analysis will always run on the full project (at least for now) I'm not interested by the "locality" of ExternalAnnotator.
Question: is there a simple way to set custom highlighting for problems created by a GlobalInspectionTool?
And if I finally have to use ExternalAnnotator, is there a way to reuse problems created by the GlobalInspectionTool? Something like "foreach problem of last inspection then create annotation".
N.B.: Code is publicly visible here: https://github.com/SonarSource/sonar-intellij