Rule Bug: "@NonNull" values should not be set to null (java:S2637)

Rule: java:S2637
false-positive happening

Link to code

HI @shaburov,
Thanks for reporting the issue. It looks like the analyzer is confused by the ternary expression and this is indeed a false positive.

A ticket has been created to fix the problem.