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