title: Could be in Optional really anything
body: <p>I found implemented this code (method where this part of code is used is returning <code>Optional&lt;File&gt;</code>, this part of code had to be added for verification if values are correct and case can be saved):</p>
  <pre><code>if (!CaseChecker.checkValues(case)) {
      return Optional.of(new File(&quot;FALSE&quot;));
  }
  </code></pre>
  <p>When I asked the person, why he is returning something like this. The answer was &quot;Optional can contain any value&quot;. To be honest I don't agree with this, because type of Optional is for some reason. So I wanted to confirm if Optional can be really anything and if yes, then what's the reason to write Optional type.</p>