void SaveState()
        {
            m_Config.SetUseAdvanced(m_EditorState.useAdvanced, m_MessageType);
            EditorUtility.SetDirty(m_Config);
            if (m_EditorState.useAdvanced)
            {
                m_ProtoFile.AddMessage(new MessageInfo()
                {
                    name   = m_Descriptor.Name,
                    fields = m_EditorState.fields
                });
            }
            else
            {
                m_ProtoFile.AddMessage(m_DefaultMessage);
            }


            m_SavedEditorState = new EditorState(m_Config.GetUseAdvanced(m_MessageType),
                                                 new MessageInfo(m_Descriptor));

            ApplyState(m_EditorState);
        }