void (Collection<PluginId> collector, List<Path> projectPaths) { var options = OpenProjectTaskKt.OpenProjectTask(builder -> { builder.setShowWelcomeScreen(false); builder.setRunConversionBeforeOpen(false); return Unit.INSTANCE; }); for (var path : projectPaths) { var project = ProjectUtil.openOrImport(path, options); if (project == null) { LOG.error("Cannot open a project at " + path); System.exit(1); } for (var dependency : ExternalDependenciesManager.getInstance(project).getDependencies(DependencyOnPlugin.class)) { collector.add(PluginId.getId(dependency.getPluginId())); } ProjectManagerEx.getInstanceEx().forceCloseProject(project); } }