private String[] mergeArrays(@Nullable String[] array1, String[] array2) {
		Set<String> uniqueValues = array1 == null ? new LinkedHashSet<>() : Arrays.stream(array1).collect(Collectors.toCollection(LinkedHashSet::new));
		uniqueValues.addAll(Arrays.asList(array2));
		return uniqueValues.toArray(new String[0]);
	}
Merge string arrays into one array with unique values

@param array1 the array1
@param array2 the array2
@return the string [ ]
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/models/MethodAttributes.java