ItemListener (final PropertyChangeSupport changeSupport, final @NonNls String propertyName) { return new ItemListener() { @Override public void itemStateChanged(ItemEvent e) { changeSupport.firePropertyChange(propertyName, null, null); } }; }