public SWTBotMenu menu(final String menuName) throws WidgetNotFoundException {
final Matcher<? extends Widget> matcher = withMnemonic(menuName);
MenuItem menuItem = syncExec(new WidgetResult<MenuItem>() {
public MenuItem run() {
Menu bar = widget.getMenu();
List menus = new MenuFinder().findMenus(bar, withMnemonic(menuName), true);
if (!menus.isEmpty())
return (MenuItem) menus.get(0);
return null;
}
});