void (@NotNull String name, @NotNull Processor<? super NavigationItem> processor, @NotNull FindSymbolParameters parameters) { Project project = parameters.getProject(); GlobalSearchScope scope = PySearchUtilBase.excludeSdkTestScope(parameters.getSearchScope()); IdFilter filter = parameters.getIdFilter(); PsiManager psiManager = PsiManager.getInstance(project); if (!StubIndex.getInstance().processElements(PyClassNameIndex.KEY, name, project, scope, filter, PyClass.class, processor)) return; FileBasedIndex.getInstance().getFilesWithKey(PyModuleNameIndex.NAME, Collections.singleton(name), file -> { if (PyUserSkeletonsUtil.isUnderUserSkeletonsDirectory(file)) return true; PsiFile psiFile = psiManager.findFile(file); return !(psiFile instanceof PyFile) || processor.process(psiFile); }, scope); }