Is it possible to create two commands
\enableOverfullWarnings that respectively disable and enable the printing of messages such as
Overfull \hbox (12.92616pt too wide) in paragraph at lines 157--158 ...
in the console (in the output of
PS: If not possible, is it possible to disable all warnings for some part of the document?
EDIT: This is not a duplicate of How to suppress overfull hbox warnings up to some maximum?.