prefer `newArrayListWithCapacity` here if possible