void WriteStatePercent(string title, string msg, long?value, long?max)
        {
            if (!value.HasValue || !max.HasValue)
            {
                _consoleWriter.WriteLine(title + ": " + msg + " ");
                return;
            }

            _consoleWriter.Write(title + ": " + msg + " ");

            using (var pg = _consoleWriter.CreatePercent(max.Value))
            {
                pg.Value = value.Value;
            }
        }