code: public static IdGenerator newSnowflakeIdGenerator(MachineIdProvider machineIdProvider) {
          EncodingProvider encodingProvider = new SnowflakeEncodingProvider(machineIdProvider.getMachineId());
          return new DefaultIdGenerator(new SystemTimeProvider(), encodingProvider);
      }
docs: Create a Snowflake-based {@link IdGenerator} using the given
  {@link MachineIdProvider}.
  
  @return the {@link IdGenerator}