if (!existingList.contains(file)) {</BUG>
writeTag(indent, PATH_ELEMENT, file.getAbsolutePath(), SOURCE_PATH);
<BUG>}
}
}
private void writeGeneratedSource(File file, List<File> existingList, String indent) throws IOException {
if (file.isDirectory() && !file.isHidden() && !existingList.contains(file)) {
writeTag(indent, PATH_ELEMENT, file.getAbsolutePath(), SOURCE_PATH);
}</BUG>
}

for (File file : generatedSources.listFiles()) {
if (file.isDirectory() && !file.isHidden() && !paths.contains(file)) {
writeSourcePath(file, indent);
}
}
}
}
private void writeSourcePath(File file, String indent) throws IOException {
writeTag(indent, PATH_ELEMENT, file.getAbsolutePath(), SOURCE_PATH);
}
