void (Function<? super ProductivityFeaturesRegistry, ? extends FeatureDescriptor> featureGetter) { ProductivityFeaturesRegistry featuresRegistry = ProductivityFeaturesRegistry.getInstance(); if (featuresRegistry != null) { FeatureDescriptor feature = featureGetter.fun(featuresRegistry); if (feature != null) { FeatureUsageTracker.getInstance().triggerFeatureUsed(feature.getId()); } } }