PlayerQuitEvent.get/setQuitMessage() is marked as @NotNull, but I see no reason to do that. We have a plugin that does set it to null (to prevent a quit message to be sent) and we do not have any problems caused by it.
Additionally PlayerJoinEvent.get/setJoinMessage() is @Nullable and is working similar.
So I think it should be changed to @Nullable.