public static IJavaSearchScope createRelatedProjectsScope(IJavaProject project,int includeMask) throws CoreException {
  IJavaProject[] projects=getRelatedProjects(project);
  return SearchEngine.createJavaSearchScope(projects,includeMask);
}

public static IJavaSearchScope createRelatedProjectsScope ( IJavaProject project , int includeMask ) throws CoreException { IJavaProject [ ] projects = getRelatedProjects ( project ) ; return SearchEngine . createJavaSearchScope ( projects , includeMask ) ; }
creates a new search scope containing all projects which reference or are referenced by the specified project .
