ActionGroup () { DefaultActionGroup group = DefaultActionGroup.createPopupGroup(JavaUiBundle.messagePointer("artifacts.add.copy.action")); group.getTemplatePresentation().setIcon(IconUtil.getAddIcon()); for (PackagingElementType<?> type : PackagingElementFactory.getInstance().getNonCompositeElementTypes()) { group.add(new AddNewPackagingElementAction(type, this)); } return group; }