One type of light that can be used to detect writing on a document soaked in water is ultraviolet (UV) light.One use of UV light is in forensic analysis, where it can reveal hidden or altered writing on documents, especially if they've been damaged by water. Some inks fluoresce under UV light, making the writing visible even if it's not apparent under normal lighting.
Well I guess you are right, considering you didnt mention what that is.