I don't know what conventions are for this kind of thing, but your effectively trying to do work in a static initializer. That means you need to get this class loaded by a class loader, which you can do by running the expression
SignSerializer::class
somewhere on the program trace.