Improve callStatic to work with extended class