question: public static void resetFileStates ( List < FileState > fileStates ) { for ( Iterator < FileState > iter = fileStates . iterator ( ) ; iter . hasNext ( ) ; ) { FileState fileState = iter . next ( ) ; if ( fileState . getModification ( ) == deleted ) { iter . remove ( ) ; } else { fileState . setModification ( null ) ; fileState . setPreviousFileState ( null ) ; } } }
target:  Remove modification, previousFileState and deleted entries