code: public List<String> selectGroupNamesByQuery(DbSession dbSession, PermissionQuery query) {
      return mapper(dbSession).selectGroupNamesByQuery(query, new RowBounds(query.getPageOffset(), query.getPageSize()));
    }
docs: Returns the names of the groups that match the given query, for the given organization.
  The virtual group "Anyone" may be returned as the value {@link DefaultGroups#ANYONE}.
  @return group names, sorted in alphabetical order