AnAction[] () { AnAction a = ActionManager.getInstance().getActionOrStub("ToggleFullScreenGroup"); AnAction[] actions = a instanceof DefaultActionGroup ? ((DefaultActionGroup)a).getChildActionsOrStubs() : a instanceof ActionGroup ? ((ActionGroup)a).getChildren(null) : EMPTY_ARRAY; AnAction presentationAssistant = ActionManager.getInstance().getActionOrStub("TogglePresentationAssistantAction"); if (presentationAssistant != null) { actions = ArrayUtil.append(actions, presentationAssistant); } return ContainerUtil.filter(actions, not(instanceOf(Separator.class))).toArray(AnAction.EMPTY_ARRAY); }