JPanel (@NotNull List<? extends Action> actions, @Nullable JRootPane rootPane) { List<JButton> buttons = ContainerUtil.map(actions, action -> DialogWrapper.createJButtonForAction(action, rootPane)); return DialogWrapper.layoutButtonsPanel(buttons); }