StateRestoringCheckBox (@NlsContexts.Checkbox String name, boolean toSelect, JPanel panel, boolean toUpdate) { StateRestoringCheckBox cb = createCheckbox(name, toSelect, toUpdate); JComponent decoratedCheckbox = new ComponentPanelBuilder(cb).createPanel(); decoratedCheckbox.setAlignmentX(Component.LEFT_ALIGNMENT); decoratedCheckbox.setBorder(JBUI.Borders.emptyBottom(8)); panel.add(decoratedCheckbox); return cb; }