docs: public void configureDeploymentStatisticsQuery(DeploymentStatisticsQueryImpl query) {
      configureQuery(query, DEPLOYMENT, "RES.ID_");
  
      query.getProcessInstancePermissionChecks().clear();
      query.getJobPermissionChecks().clear();
      query.getIncidentPermissionChecks().clear();
  
      if(query.getAuthCheck().isAuthorizationCheckEnabled()) {
  
        CompositePermissionCheck processInstancePermissionCheck = new PermissionCheckBuilder()
            .disjunctive()
            .atomicCheck(PROCESS_INSTANCE, "EXECUTION.PROC_INST_ID_", READ)
            .atomicCheck(PROCESS_DEFINITION, "PROCDEF.KEY_", READ_INSTANCE)
            .build();
  
        query.addProcessInstancePermissionCheck(processInstancePermissionCheck.getAllPermissionChecks());
  
        if (query.isFailedJobsToInclude()) {
          CompositePermissionCheck jobPermissionCheck = new PermissionCheckBuilder()
              .disjunctive()
              .atomicCheck(PROCESS_INSTANCE, "JOB.PROCESS_INSTANCE_ID_", READ)
              .atomicCheck(PROCESS_DEFINITION, "JOB.PROCESS_DEF_KEY_", READ_INSTANCE)
              .build();
  
          query.addJobPermissionCheck(jobPermissionCheck.getAllPermissionChecks());
        }
  
        if (query.isIncidentsToInclude()) {
          CompositePermissionCheck incidentPermissionCheck = new PermissionCheckBuilder()
              .disjunctive()
              .atomicCheck(PROCESS_INSTANCE, "INC.PROC_INST_ID_", READ)
              .atomicCheck(PROCESS_DEFINITION, "PROCDEF.KEY_", READ_INSTANCE)
              .build();
  
          query.addIncidentPermissionCheck(incidentPermissionCheck.getAllPermissionChecks());
  
        }
      }
    }