{
      collection = getDuplicates(collection);

      for (int i = size; --i >= 0; )
      {
        if (collection.contains(data[i]))
        {
          doRemove(i);
          result = true;
        }
      }
    }