I don't think you need to create a new list here. The builder could expose an Iterator and you could remove classes without a bean defining annotation as you iterate.