GlobalSearchScope (PsiFile containingFile, GlobalSearchScope scope) { return PsiSearchScopeUtil.isInScope(scope, containingFile) ? scope : scope.uniteWith(GlobalSearchScope.fileScope(myProject, containingFile.getViewProvider().getVirtualFile())); }