* @param matcher the matcher used to find the menu.
* @param index the index of the menu, in case there are multiple menus with the same text.
* @return a menu item that matches the specified text.
*/
public SWTBotMenu menu(SWTBotShell shell, Matcher<? extends Widget> matcher, int index) {
WaitForMenu waitForMenu = waitForMenu(shell, matcher);
waitUntilWidgetAppears(waitForMenu);
return new SWTBotMenu(waitForMenu.get(index), matcher);
}