private @NotNull Permission getPermission(final String consentId) {
    final ConfirmedConsent confirmedConsent = getConfirmedConsent(consentId);
    return confirmedConsent == null? Permission.UNDEFINED : confirmedConsent.isAccepted()? Permission.YES : Permission.NO;
  }
private @NotNull Permission getPermission(final String consentId)