public PluginDescriptor getDescriptor() {
        Iterator<PluginInfo> iterator = this.iterator();
        if (!iterator.hasNext()) {
            throw new RuntimeException("Cannot get descriptor. Could not find any plugin information.");
        }
        return iterator.next().getDescriptor();
    }
@Test
    public void shouldGetDescriptorOfPluginUsingAnyPluginInfo() {
        PluginDescriptor descriptor = mock(PluginDescriptor.class);

        NotificationPluginInfo notificationPluginInfo = new NotificationPluginInfo(descriptor, null);
        PluggableTaskPluginInfo pluggableTaskPluginInfo = new PluggableTaskPluginInfo(descriptor, null, null);

        CombinedPluginInfo pluginInfo = new CombinedPluginInfo(List.of(pluggableTaskPluginInfo, notificationPluginInfo));

        assertThat(pluginInfo.getDescriptor(), is(descriptor));
    }