docs: public static ValidatedConformanceConfig create(ConformanceConfig config) {
      ImmutableList.Builder<RuleWithWhitelists> rulesBuilder = new ImmutableList.Builder<>();
      for (Requirement requirement : config.getRequirementList()) {
        Preconditions.checkArgument(
            !requirement.getErrorMessage().isEmpty(), "requirement missing error message");
        Preconditions.checkArgument(
            requirement.getRequirementTypeCase() != RequirementTypeCase.REQUIREMENTTYPE_NOT_SET,
            "requirement missing type");
        Rule<? extends Node> rule = forRequirement(requirement);
        ImmutableList<String> whitelists = ImmutableList.copyOf(requirement.getWhitelistList());
        ImmutableList<String> onlyApplyToPaths =
            ImmutableList.copyOf(requirement.getOnlyApplyToList());
        rulesBuilder.add(RuleWithWhitelists.create(rule, whitelists, onlyApplyToPaths));
      }
      return new ValidatedConformanceConfig(rulesBuilder.build());
    }