question: private void identifyDuplicateGroupNames ( final Collection < Group > groups ) { LOG . debug ( "identifyDuplicateGroupNames" ) ; final List < String > groupNames = new ArrayList < String > ( ) ; for ( final Group group : groups ) { if ( groupNames . contains ( group . getName ( ) ) ) { throw new WroRuntimeException ( "Duplicate group name detected: " + group . getName ( ) ) ; } groupNames . add ( group . getName ( ) ) ; } }
target:  Identify duplicate group names.