docs: public List<Long> selectPostIds(EnumSet<Post.Type> types) throws SQLException {
  
        if(types == null || types.isEmpty()) {
           return selectPostIds();
        }
  
        List<Long> ids = Lists.newArrayListWithExpectedSize(4096);
        Connection conn = null;
        Statement stmt = null;
        ResultSet rs = null;
  
        String typesIn = inJoiner.join(types.stream().map(t -> String.format("'%s'", t.toString())).collect(Collectors.toSet()));
  
        try {
           conn = connectionSupplier.getConnection();
           stmt = conn.createStatement();
           rs = stmt.executeQuery(String.format(selectAllPostIdsTypeSQL, typesIn));
           while(rs.next()) {
              ids.add(rs.getLong(1));
           }
        } finally {
           SQLUtil.closeQuietly(conn, stmt, rs);
        }
        return ids;
     }