code: public List<I_CmsContextMenuItem> filterVisible(List<I_CmsContextMenuItem> items) {
  
          List<I_CmsContextMenuItem> result = Lists.newArrayList();
          for (I_CmsContextMenuItem item : items) {
              CmsMenuItemVisibilityMode visibility = getVisibility(item);
              if (!visibility.isInVisible()) {
                  result.add(item);
              }
          }
          return result;
      }
docs: Filters out invisible context menu items from a given list.<p>
  
  @param items the items
  
  @return the list of context menu items