void DoLabelForTopMostCurve(Rect rect)
    {
        if (m_CurveEditor.IsDraggingCurveOrRegion() || m_CurveEditor.selectedCurves.Count <= 1)
        {
            int curveID;

            if (m_CurveEditor.GetTopMostCurveID(out curveID))
            {
                for (int i = 0; i < m_AddedCurves.Count; ++i)
                {
                    if (m_AddedCurves[i].m_MaxId == curveID || m_AddedCurves[i].m_MinId == curveID)
                    {
                        s_Styles.yAxisHeader.normal.textColor = m_AddedCurves[i].m_Color;
                        GUI.Label(rect, m_AddedCurves[i].m_DisplayName, s_Styles.yAxisHeader);
                        return;
                    }
                }
            }
        }
    }