public void serialize(
     @NotNull final PyFunctionStub stub, @NotNull final StubOutputStream dataStream)
     throws IOException {
   dataStream.writeName(stub.getName());
   dataStream.writeUTFFast(stub.getDocString() != null ? stub.getDocString() : "");
   dataStream.writeName(stub.getDeprecationMessage());
 }
 public static void writeNullableString(StubOutputStream dataStream, @Nullable String typeText)
     throws IOException {
   dataStream.writeBoolean(typeText != null);
   if (typeText != null) {
     dataStream.writeUTFFast(typeText);
   }
 }