This is a perfectly fine place to use forEach, since this is at the static method level, and these won't be called all that frequently. At least, relative to the constructor methods for many instances.