private Collection<ExtractedItemsCollection> filterItemsByLevel(Player player,List<ExtractedItemsCollection> itemsCollections){
  int playerLevel=player.getLevel();
  Collection<ExtractedItemsCollection> result=new ArrayList<ExtractedItemsCollection>();
  for (  ExtractedItemsCollection collection : itemsCollections) {
    if (collection.getMinLevel() > playerLevel) {
      continue;
    }
    if (collection.getMaxLevel() > 0 && collection.getMaxLevel() < playerLevel) {
      continue;
    }
    result.add(collection);
  }
  return result;
}

private Collection < ExtractedItemsCollection > filterItemsByLevel ( Player player , List < ExtractedItemsCollection > itemsCollections ) { int playerLevel = player . getLevel ( ) ; Collection < ExtractedItemsCollection > result = new ArrayList < ExtractedItemsCollection > ( ) ; for ( ExtractedItemsCollection collection : itemsCollections ) { if ( collection . getMinLevel ( ) > playerLevel ) { continue ; } if ( collection . getMaxLevel ( ) > 0 && collection . getMaxLevel ( ) < playerLevel ) { continue ; } result . add ( collection ) ; } return result ; }
add to result collection only items witch suits player ' s level
