filter

inline fun Menu.filter(action: (item: MenuItem) -> Boolean): List<MenuItem>

Performs the given action on each item in this menu.