code: public Optional<Snippet> getOptionalSnippet(Integer snippetId, boolean downloadContent) {
          try {
              return (Optional.ofNullable(getSnippet(snippetId, downloadContent)));
          } catch (GitLabApiException glae) {
              return (GitLabApi.createOptionalFromException(glae));
          }
      }
docs: Get a specific snippet as an Optional instance.
  
  <pre><code>GitLab Endpoint: GET /snippets/:snippet_id</code></pre>
  
  @param snippetId the ID of the snippet to get the Optional instance for
  @param downloadContent indicating whether to download the snippet content
  @return the specified Snippet as an Optional instance