If the parameter for the constructor is not Null, then there is no point to check for a null value using the if statement.
And Since we know that any value held by the Engine parameter is not null, this check will always be false.
Thus, the verification shown in the screenshot will make sense. If you really do not want to see a zero-check check, disable it from the settings section.
In short, the value you are checking is not null inside the constructor, and the IDE knows about it.
Raja anbazhagan
source share