updateFeature

abstract fun <F : Feature<T>> updateFeature(id: String, block: (F?) -> F): FeatureRef<T, F>

Update existing feature if it is present and is of type F