title: Should Optional.ofNullable() be used for null check?
body: <p>Which null-check is preferable?</p>
  
  <pre><code>Optional.ofNullable(port).ifPresent(settings::setPort);
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if (port != null) {
     settings.setPort(port);
  }
  </code></pre>