addCleanable(menuManager, items, "Clean all caches", allCleanables);
addCleanable(menuManager, items, "Clean the resolution cache", resolutionCleanables);
addCleanable(menuManager, items, "Clean every repository cache", repositoryCleanables);
Iterator itCleanble = resolutionCleanables.iterator();
while (itCleanble.hasNext()) {
Cleanable cleanable = (Cleanable) itCleanble.next();
addCleanable(menuManager, items, "Clean the cache '" + cleanable.getName() + "'",
Collections.singletonList(cleanable));
}
}