boolean (String id, AnAction actionOrStub) { return actionOrStub instanceof ActionGroup && (((ActionGroup)actionOrStub).isPopup() || StringUtil.isEmpty(actionOrStub.getTemplateText()) || StringUtil.containsIgnoreCase(id, "Popup") || StringUtil.containsIgnoreCase(id, "Toolbar")); }