remove Collections.forEach loop

Address https://github.com/adobe-research/brackets/commit/33a016da6d58b8f544863148a21b4cd5bf9c6806#commitcomment-3025645