GlobalSearchScope (@NotNull PsiElement anchor) { return PySearchScopeBuilder.forPythonSdkOf(anchor) .excludeStandardLibraryTests() .excludeThirdPartyPackageTypeShedStubs() .excludePythonSkeletonsStubs() .excludeThirdPartyPackageTests() .excludeThirdPartyPackageBundledDependencies() .build(); }