Extension facility does not support context argument on static register method on class
If the register function is defined as a static method on a class, the extension facility does not recognize the form that accepts the generator context as the first argument. The problem is with the matcher pattern.