make sure the modifying method is a List, Set or Map api method