public static string getHex(string identifier)
    {
        bool   flag = ColorOptions.ColorDict.TryGetValue(identifier, out ColorVariable color);
        string result;

        if (flag)
        {
            result = ColorUtilities.ColorToHex(color);
        }
        else
        {
            result = ColorUtilities.ColorToHex(ColorOptions.errorColor);
        }
        return(result);
    }