void (List<File> files, ListProperty<AntClasspathEntry> property, AbstractProperty.AbstractPropertyContainer container) { if (!container.hasProperty(property)) return; Iterator<AntClasspathEntry> entries = property.getIterator(container); while (entries.hasNext()) { AntClasspathEntry entry = entries.next(); entry.addFilesTo(files); } }