+ private String annotateReference(final String ref, final Type type, final String annotation) {
+ if (type instanceof ParameterizedType parameterized) {
+ return getReferenceString(annotate(ref, annotation), type, parameterized.getActualTypeArguments());
+ }
+ return "byte[]".equals(ref) ? "byte @" + annotation + "[]" : annotate(ref, annotation).toString();
+ }
+
+ final String getFullyQualifiedReference(final Type type, final String annotation) {
+ return annotateReference(type.getFullyQualifiedName(), type ,annotation);
+ }
+