GlobalSearchScope (GlobalSearchScope scope) { if (scope instanceof ModuleWithDependenciesScope) { Module module = ((ModuleWithDependenciesScope)scope).getModule(); if (!module.isDisposed()) { return scope.uniteWith(module.getModuleContentWithDependenciesScope()); } } return scope; }