docs: protected boolean validateResourceSetScopes(final ResourceSet rs) {
          if (rs.getPolicies() == null || rs.getPolicies().isEmpty()) {
              return true;
          }
          return rs.getPolicies()
              .stream()
              .flatMap(policy -> policy.getPermissions().stream())
              .allMatch(permission -> rs.getScopes().containsAll(permission.getScopes()));
      }