private static int stringToId(@NotNull String name) {
    int id = nameToIdRegistry.enumerate(name);
    if (id != (short)id) {
      throw new AssertionError("Too many indexes registered");
    }
    return id;
  }
private static int stringToId(@NotNull String name)