docs: public boolean update(DbSession dbSession, RuleUpdate update, OrganizationDto organization, UserSession userSession) {
      if (update.isEmpty()) {
        return false;
      }
  
      RuleDto rule = getRuleDto(update);
      // validate only the changes, not all the rule fields
      apply(update, rule, userSession);
      update(dbSession, rule);
      updateParameters(dbSession, organization, update, rule);
      ruleIndexer.commitAndIndex(dbSession, rule.getId(), organization);
  
      return true;
    }