private JCheckBox createShowMinorErrorMessagesSelection(JPanel mainPanel,
            Settings settings) {
        JLabel showMinorErrorLabel = new JLabel("Show minor error messages");
        JCheckBox showMinorErrors = new JCheckBox();
        showMinorErrors.setSelected(settings.isShowMinorErrorDialogs());

        mainPanel.add(showMinorErrorLabel);
        mainPanel.add(showMinorErrors);

        return showMinorErrors;
    }