Collection<String> packageWhitelist = splitFilter(packageFilter);
ElementFilter filter = new DefaultElementFilter(packageWhitelist);
GraphModel resultGraph = new GraphModel();
DependenciesListener builder =
new DependenciesDispatcher(filter, resultGraph.getBuilder());
// TODO(leeca): Extend UI to allow lists of directories.
Collection<String> directoryWhitelist = splitFilter(directoryFilter);
monitor.worked(1);