public @Nullable X509Certificate getFirstSelectedCertificate(boolean addFromOrganization) {
    Set<X509Certificate> certificates = getSelectedCertificates(addFromOrganization);
    return certificates.isEmpty() ? null : certificates.iterator().next();
  }
public @Nullable X509Certificate getFirstSelectedCertificate(boolean addFromOrganization)