Add support for from and static decorators