Collection<String> (Collection<String> annotations, Collection<String> defaultAnnotations) { Set<String> result = new HashSet<>(defaultAnnotations); result.addAll(annotations != null ? annotations : emptyList()); return result; }