Iterable<String> (Iterable<String> options) { for (Iterator<String> it = options.iterator(); it.hasNext(); ) { final String option = it.next(); if ("-processor".equals(option)) { return it.hasNext()? Arrays.asList(it.next().split(",")) : null; } } return null; }