docs: public List<MeasureDto> selectByQuery(DbSession dbSession, MeasureQuery query) {
      if (query.returnsEmpty()) {
        return emptyList();
      }
      if (query.isOnComponents()) {
        return executeLargeInputs(
          query.getComponentUuids(),
          componentUuids -> {
            MeasureQuery pageQuery = MeasureQuery.copyWithSubsetOfComponentUuids(query, componentUuids);
            return mapper(dbSession).selectByQueryOnComponents(pageQuery);
          });
      }
      if (query.isOnProjects()) {
        return executeLargeInputs(
          query.getProjectUuids(),
          projectUuids -> {
            MeasureQuery pageQuery = MeasureQuery.copyWithSubsetOfProjectUuids(query, projectUuids);
            return mapper(dbSession).selectByQueryOnProjects(pageQuery);
          });
      }
      return mapper(dbSession).selectByQueryOnSingleComponent(query);
    }