MergedAnnotationCollectors.toAnnotationSet() currently creates an intermediate ArrayList for storing the results prior to creating a LinkedHashSet in the finishing step. The creation of the intermediate list is unnecessary and can be avoided.