public static bool? CanGetFolderTree(this ICmisObject obj) { if (obj.IsActionAllowed(Actions.CanGetDescendants) == true) { return true; } else { return obj.IsActionAllowed(Actions.CanGetFolderTree); } }