title: ObjectUtils.defaultIfNull() for null check
body: <pre><code>car.setName(  entity.getThingType() != null ? entity.getThingType().getTypeName() : null);
  </code></pre>
  <p>How can we re-write this statement using <code>ObjectUtils.defaultIfNull() </code></p>
  <p>I tired below way, seems some issue</p>
  <pre><code>car.setName(ObjectUtils.defaultIfNull(entity.getThingType(), null).getTypeName());
  </code></pre>