static ProjectMeasuresQuery newProjectMeasuresQuery(List<Criterion> criteria, @Nullable Set<String> projectUuids) {
    ProjectMeasuresQuery query = new ProjectMeasuresQuery();
    Optional.ofNullable(projectUuids).ifPresent(query::setProjectUuids);
    criteria.forEach(criterion -> processCriterion(criterion, query));
    return query;
  }
@Test
  public void fail_to_create_query_on_qualifier_when_operator_is_not_equal() {
    assertThatThrownBy(() -> {
      newProjectMeasuresQuery(singletonList(Criterion.builder().setKey("qualifier").setOperator(GT).setValue("APP").build()), emptySet());
    })
      .isInstanceOf(IllegalArgumentException.class)
      .hasMessage("Only equals operator is available for qualifier criteria");
  }