MenuItemInternal (List<MenuItemInternal> kids, int uid) { if (kids == null || kids.isEmpty()) { return null; } for (MenuItemInternal mi : kids) { if (mi.uid == uid) { return mi; } final MenuItemInternal child2 = _findMenuItem(mi.children, uid); if (child2 != null) { return child2; } } return null; }