question: private Map < Installment , List < Receipt > > consolidateTuplesInstallmentWise ( final List < InstallmentReceiptTuple > tuples ) { final Map < Installment , List < Receipt > > consolidated = new HashMap < Installment , List < Receipt > > ( ) ; for ( final InstallmentReceiptTuple t : tuples ) { List < Receipt > receiptsForInstallment = consolidated . get ( t . installment ) ; if ( receiptsForInstallment == null ) { receiptsForInstallment = new ArrayList < Receipt > ( ) ; consolidated . put ( t . installment , receiptsForInstallment ) ; } if ( ! receiptsForInstallment . contains ( t . receipt ) ) receiptsForInstallment . add ( t . receipt ) ; } LOGGER . info ( "consolidateTuplesInstallmentWise() returned: " + consolidated ) ; return consolidated ; }
target:  Constructs a list of receipts for each installment.