Sorry for this long time before answering you… I can not reproduce the issue on my side, it seems that our analyzer is currently dealing with it correctly. Could you please answer the following questions:
Are you still experiencing the issue?
What is the signature of getRootNode() method?
What is your version of SonarLint?
Are you using Connected Mode?
if yes, is it to SonarCLoud?
if yes, and it’s SonarQube, to what version and what is the embedded version of the Java Analyzer?