void () { final JComponent component = getChildComponent(); final NamedScope[] model = createModel(); if (component instanceof JComboBox) { ((JComboBox)component).setModel(new DefaultComboBoxModel(model)); } else { ((JBComboBoxTableCellEditorComponent)component).setOptions((Object[])model); } }