ComboBox<LineSeparator> () { ComboBox<LineSeparator> comboBox = new ComboBox<>(myLineSeparatorComboBoxModel); comboBox.setRenderer(SimpleListCellRenderer.create(message("combobox.crlf.none"), separator -> ApplicationBundle.message(switch (separator) { case LF -> "combobox.crlf.unix"; case CRLF -> "combobox.crlf.windows"; case CR -> "combobox.crlf.mac"; }))); return comboBox; }