List<Consent> () { final List<Consent> result = new ArrayList<>(); for (Pair<JCheckBox, Consent> pair : consentMapping) { JCheckBox checkBox = pair.first; result.add(pair.second.derive(checkBox == null || checkBox.isSelected())); } return result; }