RegisterStaticModules depreciated -> how to register formats now?

Pro Turm <[email protected]> Mon, 10 Feb 2020 18:04:53 +0100 (CET)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
RegisterStaticModules has been declared as depreciated, and its not part anymore from InitializeMagickInfoList().

What is the way to register formats then and where are the calls like e.g. registerPNGformat are supposed to be called from? Is there any example out there?