Ideally, it would be great if could provide a little description of the problem, what you expected, and so on. We are not robots processing tickets, it is always nicer and helps us to understand better the problem.
In any case, this looks like a false positive. Ticket created: SONARJAVA-3967.
Note that this should only happen in SonarLint when the semantic is incorrectly resolved (when the project is not built for example). If it happens in SonarQube aswell, it’s probably that your project analysis is misconfigured.