change the parameter name to dumpContextForLabels and the internal data structure from std::vector<std::string> to std::set<std::string> to avoid the linear lookup