code: public Optional<DeployKey> getOptionalDeployKey(Object projectIdOrPath, Integer keyId) {
          try {
              return (Optional.ofNullable(getDeployKey(projectIdOrPath, keyId)));
          } catch (GitLabApiException glae) {
              return (GitLabApi.createOptionalFromException(glae));
          }
      }
docs: Get a single deploy key for the specified project as an Optional instance.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/deploy_keys/:key_id</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param keyId the ID of the deploy key to delete
  @return the DeployKey for the specified project ID and key ID as an Optional instance