void (ConvertContext context, final Processor<GlobalSearchScope> processor) { final Project project = context.getProject(); Module module = context.getModule(); if (module == null) { final GlobalSearchScope projectScope = GlobalSearchScopesCore.projectProductionScope(project). union(ProjectScope.getLibrariesScope(project)); processor.process(projectScope); return; } ModuleUtilCore.visitMeAndDependentModules(module, module1 -> { return processor.process(module1.getModuleRuntimeScope(false)); }); }