Support for static methods in gen-class