JBPopup (@NotNull ActionGroup actionGroup, @NotNull AnActionEvent event) { PopupFactoryImpl.ActionGroupPopup popup = new PopupFactoryImpl.ActionGroupPopup( null, null, actionGroup, event.getDataContext(), false, false, true, false, null, -1, null, ActionPlaces.getActionGroupPopupPlace(event.getPlace()), createPresentationFactory(), false); popup.setShowSubmenuOnHover(true); popup.setAlignByParentBounds(false); popup.setActiveRoot(getPopupContainer(this) == null); if (ActionPlaces.EDITOR_FLOATING_TOOLBAR.equals(event.getPlace())) { Editor editor = event.getData(CommonDataKeys.EDITOR); CodeFloatingToolbar floatingToolbar = CodeFloatingToolbar.getToolbar(editor); if (floatingToolbar != null) { floatingToolbar.attachPopupToButton(this, popup); } } popup.showUnderneathOf(this); return popup; }