Typehint to setCustomMessages.