private void applyPluginToSourceOrTarget(IntegrationEntity e) {
if (e == null) {
return;
}
MutableAppliedPipelinePluginStore pluginStore = project.getPipelinePlugins().getAppliedPlugins();
AppliedPipelinePlugin[] existingPlugins = pluginStore.getAllAssociations(e);
if (isEdiPluginAlreadyThere(existingPlugins)) {
return;
}
List<AppliedPipelinePlugin> newPlugins = createNewPluginList(e, existingPlugins);
pluginStore.setAssociations(e, newPlugins);
needsSaving = true;
}