static List<List<Gid>>? maybeGenerate( List<int>? data, int width, int height, ) { if (data == null) { return null; } return Gid.generate(data, width, height); }