private static @NotNull List<X509Certificate> loadCertificates(@NotNull List<? extends SslEntityReader.Entity> entities) throws IOException {
    List<X509Certificate> certs = new ArrayList<>();
    for (SslEntityReader.Entity entity : entities) {
      if (entity instanceof SslEntityReader.CertificateEntity) {
        certs.add(((SslEntityReader.CertificateEntity)entity).get());
      }
    }
    return certs;
  }
private static @NotNull List<X509Certificate> loadCertificates(@NotNull List<? extends SslEntityReader.Entity> entities)