public static void ExtractSubMenuWithPath(string path, GenericMenu menu, string replacementPath, UnityEngine.Object[] temporaryContext)
{
HashSet <string> stringSet = new HashSet <string>((IEnumerable <string>)Unsupported.GetSubmenus(path));
foreach (string includingSeparator in Unsupported.GetSubmenusIncludingSeparators(path))
{
string replacementMenuString = replacementPath + includingSeparator.Substring(path.Length);
if (stringSet.Contains(includingSeparator))
{
MenuUtils.ExtractMenuItemWithPath(includingSeparator, menu, replacementMenuString, temporaryContext, -1, (System.Action <string, UnityEngine.Object[], int>)null, (System.Action <string, UnityEngine.Object[], int>)null);
}
}
}