for (int milestoneIndex = latestMilestoneIndex; milestoneIndex > latestSolidSubtangleMilestoneIndex; milestoneIndex--) {
final Hash milestone = milestones.get(milestoneIndex);
if (milestone != null) {
boolean solid = true;
synchronized (Storage.analyzedTransactionsFlags) {
<BUG>Storage.clearAnalyzedTransactionsFlags();
</BUG>
final Queue<Long> nonAnalyzedTransactions = new LinkedList<>();
<BUG>nonAnalyzedTransactions.offer(Storage.transactionPointer(milestone.bytes()));
</BUG>
Long pointer;

for (int milestoneIndex = latestMilestoneIndex; milestoneIndex > latestSolidSubtangleMilestoneIndex; milestoneIndex--) {
final Hash milestone = milestones.get(milestoneIndex);
if (milestone != null) {
boolean solid = true;
synchronized (Storage.analyzedTransactionsFlags) {
Storage.instance().clearAnalyzedTransactionsFlags();
final Queue<Long> nonAnalyzedTransactions = new LinkedList<>();
nonAnalyzedTransactions.offer(StorageTransactions.instance().transactionPointer(milestone.bytes()));
Long pointer;
