List<SearchScope> (@NotNull Project project, @NotNull DataContext dataContext) { if (!PsiUtil.isIdeaProject(project)) return Collections.emptyList(); GlobalSearchScope scope = GlobalSearchScope.filesScope(project, () -> DomService.getInstance().getDomFileCandidates(IdeaPlugin.class, GlobalSearchScopesCore.projectProductionScope(project)) ); return Collections.singletonList(new DelegatingGlobalSearchScope(scope) { @NotNull @Override public String getDisplayName() { return DevKitBundle.message("plugin.xml.scopes.production.display.name"); } @Override public Icon getIcon() { return AllIcons.Nodes.Plugin; } }); }