Presentation () { Presentation presentation = templatePresentation; if (presentation == null) { presentation = createTemplatePresentation(); LOG.assertTrue(presentation.isTemplate(), "Not a template presentation"); templatePresentation = presentation; if (this instanceof ActionGroup group) { // init group flags from deprecated methods //myTemplatePresentation.setPopupGroup(((ActionGroup)this).isPopup()); templatePresentation.setHideGroupIfEmpty(group.hideIfNoVisibleChildren()); templatePresentation.setDisableGroupIfEmpty(group.disableIfNoVisibleChildren()); } } return presentation; }