docs: public static void validateResourceList(final List<Resource> resourceList) {
          boolean hasNotResource = false;
          boolean hasResource = false;
          for (Resource resource : resourceList) {
              if (resource.isNotType()) {
                  hasNotResource = true;
              } else {
                  hasResource = true;
              }
              if (hasResource && hasNotResource) {
                  // right now only validate that there are only NotResource or only Resource elements
                  // in the future could do more validation
                  throw new IllegalArgumentException(PolicyUtils.INVALID_RESOURCE);
              }
          }
      }