private Task FlushElementAsync() { return _writeState == WriteState.Element ? AutoCompleteAsync(WriteState.Content) : Task.CompletedTask; }