@Override
  public void setTaskState(@NotNull Task task, @NotNull CustomTaskState state) throws Exception {
    HttpPost request = new HttpPost(getRestApiUrl("api", "commands"));
    request.setEntity(new StringEntity(GSON.toJson(new YouTrackSingleIssueCommand(task.getId(), "state " + state.getId())),
                                       ContentType.APPLICATION_JSON));
    getHttpClient().execute(request,
                            JsonResponseHandlerBuilder.fromGson(GSON)
                              .errorHandler(this::parseYouTrackError)
                              .toNothing());
  }
@Override
  public void setTaskState(@NotNull Task task, @NotNull CustomTaskState state)