docs: private <T> void load(YamlSourceLoader<T> loader, YamlPolicyCreator<T> creator)
              throws IOException
      {
          int index = 1;
          try (final YamlSourceLoader<T> loader1 = loader) {
              for (T yamlDoc : loader1.loadAll()) {
                  String ident = identity + "[" + index + "]";
                  if (null == yamlDoc) {
                      continue;
                  }
                  try {
                      Policy yamlPolicy = creator.createYamlPolicy(
                              yamlDoc,
                              identity + "[" + index + "]",
                              index
                      );
                      all.add(yamlPolicy);
                      ruleSet.addAll(yamlPolicy.getRuleSet().getRules());
                  } catch (AclPolicySyntaxException e) {
                      validationError(ident, e.getMessage());
                      logger.debug(
                              "ERROR parsing a policy in file: " +
                              identity +
                              "[" +
                              index +
                              "]. Reason: " +
                              e.getMessage(), e
                      );
                  }
                  index++;
              }
  
          }
      }