if (isReference()) {
return ((Path) getCheckedRef()).iterator();
}
dieOnCircularReference();
if (getPreserveBC()) {
return new FileResourceIterator(getProject(), null, list());
}
return union == null ? Collections.<Resource> emptySet().iterator()
: assertFilesystemOnly(union).iterator();
}