model.addElement(language);
}
// When com.intellij.openapi.fileTypes.impl.FileTypePatternDialog#FileTypePatternDialog updates to fix this warning, we make the same update here
//noinspection GtkPreferredJComboBoxRenderer,deprecation
myCommenterLanguage.setRenderer(new ListCellRendererWrapper(myCommenterLanguage.getRenderer()) {
@Override
public void customize(JList list, Object value, int index, boolean selected, boolean hasFocus) {
setText(value == null ? "" : ((Language)value).getDisplayName());
if (value != null) {
final FileType type = ((Language)value).getAssociatedFileType();