void (@NotNull DataContext dataContext) { String text = StringUtil.join(component.getSelection(), pluginComponent -> { IdeaPluginDescriptor descriptor = pluginComponent.getPluginDescriptor(); return String.format("%s (%s)", descriptor.getName(), descriptor.getVersion()); }, "\n"); CopyPasteManager.getInstance().setContents(new TextTransferable(text)); }