question: private void findRepeatedDataItems ( ) { for ( JsTreeDataItem dataItem : this ) { Integer timesRepeated = 0 ; if ( hasTreeDataItem ( dataItem ) ) { if ( sameIdDataItemsMap . containsKey ( dataItem . getOriginalId ( ) ) ) timesRepeated = sameIdDataItemsMap . get ( dataItem . getOriginalId ( ) ) ; timesRepeated ++ ; sameIdDataItemsMap . put ( dataItem . getOriginalId ( ) , timesRepeated ) ; } } }
target:  Finds all repeated elements, or basically the ones with the same id so they can be treated later on