TableCellEditor (DependencyRule packageSetDependencyRule) { return new AbstractTableCellEditor() { private PackageSetChooserCombo myCombo; @Override public Object getCellEditorValue() { return myCombo.getSelectedScope(); } @Override public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) { myCombo = new PackageSetChooserCombo(myProject, value == null ? null : ((NamedScope)value).getScopeId()); return new CellEditorComponentWithBrowseButton<>(myCombo, this); } }; }