List<ViewMenuItemFactory> newItems = ext.getItems();
if (newItems == null || newItems.isEmpty()) {
return;
}
List<ViewMenuItemFactory> newItemsClone = Lists.newArrayList(newItems);
MenuExtensionPoint point = ext.getExtensionPoint();
List<ViewMenuItemFactory> existingItems = extensions.get(point);
if (existingItems == null) {
extensions.put(point, newItemsClone);
} else {
existingItems.addAll(newItemsClone);