public PluginInfo extensionFor(String extensionName) {
        return stream().filter(pluginInfo -> extensionName.equals(pluginInfo.getExtensionName())).findFirst().orElse(null);
    }
@Test
    public void shouldFindAnExtensionOfAGivenTypeIfItExists() {
        NotificationPluginInfo notificationPluginInfo = new NotificationPluginInfo(null, null);
        PluggableTaskPluginInfo pluggableTaskPluginInfo = new PluggableTaskPluginInfo(null, null, null);

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

        assertThat(pluginInfo.extensionFor(NOTIFICATION_EXTENSION), is(notificationPluginInfo));
        assertThat(pluginInfo.extensionFor(PLUGGABLE_TASK_EXTENSION), is(pluggableTaskPluginInfo));
        assertThat(pluginInfo.extensionFor(ANALYTICS_EXTENSION), is(nullValue()));
    }