False positive for Java requireNonNullElse and S2259

Hello @osmundf

Thank you for the report. The version of SonarQube for IDE you are using relies on an old Java semantic engine that is deprecated and has been removed from the most recent version.

The new Java semantic engine in SonarQube for IDE is only available in connected mode if you have a Developer Edition SonarQube or higher.

Since we focus now on the new Java semantic engine, we will not investigate this issue that concerns the old one.