docs: public void configureProcessDefinitionQuery(ProcessDefinitionQueryImpl query) {
      configureQuery(query, PROCESS_DEFINITION, "RES.KEY_");
  
      if (query.isStartablePermissionCheck()) {
        AuthorizationCheck authorizationCheck = query.getAuthCheck();
  
        if (!authorizationCheck.isRevokeAuthorizationCheckEnabled()) {
          CompositePermissionCheck permCheck = new PermissionCheckBuilder()
              .atomicCheck(PROCESS_DEFINITION, "RES.KEY_", Permissions.CREATE_INSTANCE)
              .build();
  
          query.addProcessDefinitionCreatePermissionCheck(permCheck);
  
        } else {
          CompositePermissionCheck permissionCheck = new PermissionCheckBuilder()
              .conjunctive()
              .atomicCheck(PROCESS_DEFINITION, "RES.KEY_", READ)
              .atomicCheck(PROCESS_DEFINITION, "RES.KEY_", Permissions.CREATE_INSTANCE)
              .build();
          addPermissionCheck(authorizationCheck, permissionCheck);
        }
  
      }
  
    }