The new version of IDEA static analysis found a couple of evaluations always return true.
dox