ActionGroup (@NotNull TerminalActionProvider provider) { var result = new DefaultActionGroup(); TerminalAction.buildMenu(provider, new TerminalActionMenuBuilder() { @Override public void addAction(@NotNull TerminalAction action) { result.add(new TerminalActionWrapper(action)); } @Override public void addSeparator() { result.addSeparator(); } }); return result; }