GlobalSearchScope (@NotNull PsiFile psiFile) { VirtualFile virtualFile = psiFile.getVirtualFile(); return new FileScope(psiFile.getProject(), virtualFile != null ? BackedVirtualFile.getOriginFileIfBacked(virtualFile) : null, null); }