List<TerminalAction> (@NotNull MouseEvent event) { ActionGroup group = ((HyperlinkWithPopupMenuInfo)info).getPopupMenuGroup(event); AnAction[] actions = group != null ? group.getChildren(null) : AnAction.EMPTY_ARRAY; return ContainerUtil.map(actions, action -> TerminalActionUtil.createTerminalAction(JBTerminalWidget.this, action)); }