void (Map<PathOption, String> args, PathOption option, Collection<? super File> container, boolean listDir) { final String path = args.get(option); if (path == null) { return; } final StringTokenizer tokenizer = new StringTokenizer(path, File.pathSeparator, false); while (tokenizer.hasMoreTokens()) { final File file = new File(tokenizer.nextToken()); if (listDir) { final File[] files = file.listFiles(); if (files != null) { for (File f : files) { final String fName = f.getName(); if (fName.endsWith(".jar") || fName.endsWith(".zip")) { container.add(f); } } } } else { container.add(file); } } }