view.nearestOfType() is a method not a property