code: public Optional<TimeStats> getOptionalTimeTrackingStats(Object projectIdOrPath, Integer issueIid) {
          try {
              return (Optional.ofNullable(getTimeTrackingStats(projectIdOrPath, issueIid)));
          } catch (GitLabApiException glae) {
              return (GitLabApi.createOptionalFromException(glae));
          }
      }
docs: Get time tracking stats as an Optional instance
  
  <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/time_stats</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param issueIid the internal ID of a project's issue
  @return a TimeStats as an Optional instance