@Override
  public @Nullable T read(@NotNull DataInput in) throws IOException {
    final boolean isDefined = in.readBoolean();
    if (isDefined) {
      return myNotNullExternalizer.read(in);
    }
    return null;
  }
@Override
  public @Nullable T read(@NotNull DataInput in)