def METHOD_NAME(self, feature_settings: 'FeatureSettings') -> int:
    """Returns the configured threshold, or the default threshold if it is None."""
    return self.threshold if self.threshold is not None else feature_settings.default_threshold