SearchScope () { Project project = getProject(); return new GlobalSearchScope() { @Override public boolean contains(@NotNull VirtualFile file) { return PsiManager.getInstance(project).findFile(file) instanceof ShFile; } @Override public boolean isSearchInModuleContent(@NotNull Module aModule) { return true; } @Override public boolean isSearchInLibraries() { return false; } }; }