public Flow([NotNull] ITeamCityWriter writer, bool isMainFlow)
 {
     if (writer == null)
     {
         throw new ArgumentNullException(nameof(writer));
     }
     _isMainFlow = isMainFlow;
     _writer     = isMainFlow ? writer : writer.OpenFlow();
 }