code: public static List<IItem> getAllItems(final IItemAdapter adapter, IPredicate predicate) {
          return getAllItems(adapter.getAdapterItems(), true, false, predicate);
      }
docs: retrieves a flat list of the items in the adapter, respecting subitems regardless of there current visibility
  
  @param adapter   the adapter instance
  @param predicate predicate against which each item will be checked before adding it to the result
  @return list of items in the adapter that apply to the predicate