@NotNull
  protected HttpGet createStoriesRequest(@Nullable String query, int offset, int limit, boolean withClosed) throws URISyntaxException {
    URI endpointUrl = new URIBuilder(getRestApiUrl("projects", myProjectId, "stories"))
      .addParameter("filter", (withClosed ? "" : "state:started,unstarted,unscheduled,rejected") +
                              (StringUtil.isEmpty(query) ? "" : " \"" + query + "\""))
      .addParameter("offset", String.valueOf(offset))
      .addParameter("limit", String.valueOf(limit))
      .build();

    return new HttpGet(endpointUrl);
  }
@NotNull
  protected HttpGet createStoriesRequest(@Nullable String query, int offset, int limit, boolean withClosed)