void (JComboBox classCombo) { classCombo.setRenderer(new KotlinOrJavaClassCellRenderer()); classCombo.addItemListener( new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED) { if (myMemberSelectionPanel == null) return; AbstractMemberSelectionTable<KtNamedDeclaration, KotlinMemberInfo> table = myMemberSelectionPanel.getTable(); if (table == null) return; table.setMemberInfos(myMemberInfos); table.fireExternalDataChange(); } } } ); }