for (int index = 0; index < this.externalFolders.size(); index++ ) {
if ((externalPath = (IPath)this.externalFolders.get(index)) != null) {
IFolder folder = getFolder(externalPath);
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=321358
if (folder != null)
folder.refreshLocal(IResource.DEPTH_INFINITE, pm);
}
// Set the processed ones to null instead of removing the element altogether,
// so that they will not be considered as duplicates.
// This will also avoid elements being shifted to the left every time an element
// is removed. However, there is a risk of Collection size to be increased more often.