code: public List<MergeRequest> getMergeRequests(Object projectIdOrPath, MergeRequestState state, int page, int perPage) throws GitLabApiException {
          Form formData = new GitLabApiForm()
                  .withParam("state", state)
                  .withParam(PAGE_PARAM, page)
                  .withParam(PER_PAGE_PARAM, perPage);
          Response response = get(Response.Status.OK, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests");
          return (response.readEntity(new GenericType<List<MergeRequest>>() {}));
      }
docs: Get all merge requests for the specified project.
  
  <pre><code>GitLab Endpoint: GET /projects/:id/merge_requests</code></pre>
  
  @param projectIdOrPath the project in the form of an Integer(ID), String(path), or Project instance
  @param state the state parameter can be used to get only merge requests with a given state (opened, closed, or merged) or all of them (all).
  @param page the page to get
  @param perPage the number of MergeRequest instances per page
  @return all merge requests for the specified project
  @throws GitLabApiException if any exception occurs