files.exclude(scanTargetPattern.getExcludes());
List<File> currentTargets = getExtraScanTargets();
if (currentTargets != null && !currentTargets.isEmpty()) {
currentTargets.addAll(files.getFiles());
} else {
setExtraScanTargets((List) files.asType(List.class));
}
}
}
}