private void findFiles(final Path startPath, final Filter filter) {
pathTask = new FutureTask<>(new Callable<Void>() {
@Override
public Void call() throws Exception {
Files.walkFileTree(startPath, new FunctionVisitor(getFunction(filter)));
return null;
}
});
start(pathTask);
}