code: @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
      private static Iterable<Directive> transform(final Iterable<String> texts) {
          final Collection<Directive> list = new LinkedList<>();
          for (final String text : texts) {
              try {
                  for (final Directive dir : new Directives(text)) {
                      list.add(dir);
                  }
              } catch (final SyntaxException ex) {
                  throw new IllegalStateException(ex);
              }
          }
          return list;
      }
docs: Transform strings to directives.
  @param texts Texts
  @return Directives