void (@NotNull Collection<ConfirmedConsent> updates) { if (!updates.isEmpty()) { try { final Map<String, ConfirmedConsent> allConfirmed = loadConfirmedConsents(); final long stamp = System.currentTimeMillis(); for (ConfirmedConsent consent : updates) { consent.setAcceptanceTime(stamp); allConfirmed.put(consent.getId(), consent); } myBackend.writeConfirmedConsents(confirmedConsentToExternalString(allConfirmed.values().stream())); } catch (IOException e) { LOG.info(e); } } }