@Override
    public void pluginLoaded(GoPluginDescriptor pluginDescriptor) {
        if (notificationExtension.canHandlePlugin(pluginDescriptor.id())) {
            try {
                notificationPluginRegistry.registerPlugin(pluginDescriptor.id());
                List<String> notificationsInterestedIn = notificationExtension.getNotificationsOfInterestFor(pluginDescriptor.id());
                if (notificationsInterestedIn != null && !notificationsInterestedIn.isEmpty()) {
                    checkNotificationTypes(pluginDescriptor, notificationsInterestedIn);

                    notificationPluginRegistry.registerPluginInterests(pluginDescriptor.id(), notificationsInterestedIn);
                }
            } catch (Exception e) {
                LOGGER.warn("Error occurred during plugin notification interest registration.", e);
            }
        }
    }
@Test
    public void shouldNotRegisterPluginInterestsOnPluginLoadIfPluginIfPluginIsNotOfNotificationType() {
        NotificationPluginRegistrar notificationPluginRegistrar = new NotificationPluginRegistrar(pluginManager, notificationExtension, notificationPluginRegistry);

        notificationPluginRegistrar.pluginLoaded(GoPluginDescriptor.builder().id(PLUGIN_ID_4).isBundledPlugin(true).build());
        verify(notificationPluginRegistry, never()).registerPluginInterests(anyString(), anyList());
    }