wouldn't it be more efficient to put these lines directly into the loop instead of using another list:
```java
if (view.getId() == menuItemId) {
    return true;
} else {
    return false;
}