code: public Optional<MergeRequest> getOptionalMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) {
          try {
              return (Optional.ofNullable(getMergeRequest(projectIdOrPath, mergeRequestIid)));
          } catch (GitLabApiException glae) {
              return (GitLabApi.createOptionalFromException(glae));
          }
      }
docs: Get information about a single merge request as an Optional instance.
  
  <p>NOTE: GitLab API V4 uses IID (internal ID), V3 uses ID to identify the merge request.</p>
  
  <pre><code>GitLab Endpoint: GET /projects/:id/merge_requests/:merge_request_id</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param mergeRequestIid the internal ID of the merge request
  @return the specified MergeRequest as an Optional instance instance