void (final Map<@NlsContexts.Checkbox String, Boolean> items) { clear(); for (Map.Entry<@NlsContexts.Checkbox String, Boolean> entry : items.entrySet()) { //noinspection unchecked addItem((T)entry.getKey(), entry.getKey(), entry.getValue()); } }