JComponent () { JPanel panel = new JPanel(new BorderLayout()); panel.add(new JLabel(JavaRefactoringBundle.message("constructor.with.builder.parameters.to.pass.to.the.builder.title")), BorderLayout.CENTER); final DefaultActionGroup actionGroup = new DefaultActionGroup(); actionGroup.addAction(new AnAction(JavaRefactoringBundle.message("constructor.with.builder.rename.setters.prefix.action.name")) { @Override public void actionPerformed(@NotNull AnActionEvent e) { applyNewSetterPrefix(); } }).setAsSecondary(true); panel.add(ActionManager.getInstance().createActionToolbar("ReplaceConstructorWithBuilder", actionGroup, true).getComponent(), BorderLayout.EAST); final Box box = Box.createHorizontalBox(); box.add(panel); box.add(Box.createHorizontalGlue()); return box; }