docs: public List<UserPermissionDto> selectUserPermissionsByQuery(DbSession dbSession, PermissionQuery query, Collection<Integer> userIds) {
      if (userIds.isEmpty()) {
        return emptyList();
      }
      checkArgument(userIds.size() <= DatabaseUtils.PARTITION_SIZE_FOR_ORACLE, "Maximum 1'000 users are accepted");
      return mapper(dbSession).selectUserPermissionsByQueryAndUserIds(query, userIds);
    }