public static GUIContent IconContent(string name)
        {
            GUIContent gUIContent = (GUIContent)EditorGUIUtility.s_IconGUIContents[name];

            if (gUIContent == null)
            {
                if (EditorGUIUtility.s_ScriptInfos == null)
                {
                    EditorGUIUtility.LoadScriptInfos();
                }
                GUIContent gUIContent2 = (GUIContent)EditorGUIUtility.s_ScriptInfos[name];
                gUIContent = new GUIContent();
                if (gUIContent2 != null)
                {
                    gUIContent.tooltip = gUIContent2.tooltip;
                }
                gUIContent.image = EditorGUIUtility.LoadIconRequired(name);
                EditorGUIUtility.s_IconGUIContents[name] = gUIContent;
            }
            return(gUIContent);
        }
        internal static GUIContent TextContent(string name)
        {
            if (name == null)
            {
                name = string.Empty;
            }
            GUIContent gUIContent = (GUIContent)EditorGUIUtility.s_TextGUIContents[name];

            if (gUIContent == null)
            {
                if (EditorGUIUtility.s_ScriptInfos == null)
                {
                    EditorGUIUtility.LoadScriptInfos();
                }
                gUIContent = (GUIContent)EditorGUIUtility.s_ScriptInfos[name];
                if (gUIContent == null)
                {
                    gUIContent = new GUIContent(name);
                }
                gUIContent.image = EditorGUIUtility.LoadIconForSkin(name, EditorGUIUtility.skinIndex);
                EditorGUIUtility.s_TextGUIContents[name] = gUIContent;
            }
            return(gUIContent);
        }