This inspection reports an
if
expression checking variable being null or not right after initializing it that can be converted into an elvis operator in the initializer.