class SplitIoClient::Helpers::Util

def self.segment_names_by_feature_flag(feature_flag)

def self.segment_names_by_feature_flag(feature_flag)
  feature_flag[:conditions].each_with_object(Set.new) do |condition, names|
    condition[:matcherGroup][:matchers].each do |matcher|
      next if matcher[:userDefinedSegmentMatcherData].nil?
      names << matcher[:userDefinedSegmentMatcherData][:segmentName]
    end
  end
end