IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
IProject[] projects = workspaceRoot.getProjects();
for (int i = 0, length = projects.length; i < length; i++) {
IPath path = projects[i].getLocation();
path = path.makeAbsolute();
if (path != null && path.isPrefixOf(includedPath)) {
// -1 so we still have the project path
includedPath = includedPath.removeFirstSegments(path
.segmentCount() - 1);
return ResourcesPlugin.getWorkspace().getRoot().getFile(