}
private void checkAnalyzed(Collection<Matrix> mylist, Study study) {
Iterator<Matrix> matrixIterator = mylist.iterator();
while ( matrixIterator.hasNext() ) {
Matrix matrix = matrixIterator.next();
if ( matrix.isPublished() ) {
matrix.setAnalyzed(true);
}
else {
if ( study != null ) {
Iterator<Matrix> analyzedMatrixIterator = study.getMatrices().iterator();
ANALYZED: while ( analyzedMatrixIterator.hasNext() ) {
Matrix analyzedMatrix = analyzedMatrixIterator.next();
if ( analyzedMatrix.getId() == matrix.getId() ) {
matrix.setAnalyzed(true);
break ANALYZED;
}
}
}