docs: private void writeResources(List<Resource> resources)
              throws JsonGenerationException, IOException {
  
          PolicyUtils.validateResourceList(resources);
          List<String> resourceStrings = new ArrayList<String>();
  
          for (Resource resource : resources) {
              resourceStrings.add(resource.getId());
          }
  
          // all resources are validated to be of the same type, so it is safe to take the type of the first one
          if (resources.get(0).isNotType()) {
              writeJsonArray(JsonDocumentFields.NOT_RESOURCE, resourceStrings);
          } else {
              writeJsonArray(JsonDocumentFields.RESOURCE, resourceStrings);
          }
      }