private static @NotNull ActionGroup wrapTerminalActions(@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;
  }
private static @NotNull ActionGroup wrapTerminalActions(@NotNull TerminalActionProvider provider)