docs: public void applyAndCommit(DbSession dbSession, PermissionTemplateDto template, Collection<ComponentDto> projects) {
      if (projects.isEmpty()) {
        return;
      }
  
      for (ComponentDto project : projects) {
        copyPermissions(dbSession, template, project, null);
      }
      projectIndexers.commitAndIndex(dbSession, projects, ProjectIndexer.Cause.PERMISSION_CHANGE);
    }