private void _includeProject( Settings settings, Path projectDirPath, Path projectPathRootDirPath, String projectPathPrefix) { Path relativePath = projectPathRootDirPath.relativize(projectDirPath); String projectPath = relativePath.toString(); projectPath = projectPathPrefix + ":" + projectPath.replace(File.separatorChar, ':'); settings.include(new String[] {projectPath}); ProjectDescriptor projectDescriptor = settings.findProject(projectPath); projectDescriptor.setProjectDir(projectDirPath.toFile()); }