public static GraphDataOutput wrap(DataOutput out, @Nullable StringEnumerator enumerator) {
    return enumerator == null? wrap(out) : new GraphDataOutputImpl(out) {
      @Override
      public void writeUTF(@NotNull String s) throws IOException {
        writeInt(enumerator.toNumber(s));
      }
    };
  }
public static GraphDataOutput wrap(DataOutput out, @Nullable StringEnumerator enumerator)