public boolean containsMenu(MenuView menu){
  return subMenus.contains(menu);
}

public boolean containsMenu ( MenuView menu ) { return subMenus . contains ( menu ) ; }
to check if the menu is a sub menu of this expandablemenu
