Collection<IdeaPlugin> (final Project project) { if (DumbService.isDumb(project)) return Collections.emptyList(); return CachedValuesManager.getManager(project).getCachedValue(project, () -> { GlobalSearchScope scope = GlobalSearchScopesCore.projectProductionScope(project). union(ProjectScope.getLibrariesScope(project)); return CachedValueProvider.Result.create(DescriptorUtil.getPlugins(project, scope), PsiModificationTracker.MODIFICATION_COUNT); }); }