wizardsToBeDeleted = Sets.newHashSet();
allImplementingItems = KSet.hash();
for (IntegrationEntity e : willBeDeleted) {
if (e instanceof SalesforceWizardEntity) {
wizardsToBeDeleted.add(e);
WizardItemBrowser browser = new WizardItemBrowser((SalesforceWizardEntity) e);
allImplementingItems.addAll(browser.getAllImplementingItems());
}
}
allImplementingItems.removeAll(willBeDeleted);
allImplementingItems.keepAll(new Predicate<IntegrationEntity>() {