[master 6/11] Add a decorator for guarding methods and properties with a property