}
if (project.hasNature(JavaCore.NATURE_ID)) {
IJavaProject javaProject = JavaCore.create(project);
for (IPackageFragmentRoot fragmentRoot : javaProject.getAllPackageFragmentRoots()) {
if (fragmentRoot.getResource() instanceof IFolder) {
sourceContainers.add(new FolderSourceContainer((IFolder)fragmentRoot.getResource(), true));
}
}
for (IClasspathEntry entry : javaProject.getResolvedClasspath(true)) {
switch (entry.getEntryKind()) {
case IClasspathEntry.CPE_CONTAINER: