@Override public NamedType addAnnotations(Annotations annotations) { Map<String, String> newAnnotations = new HashMap<>(this.annotations); newAnnotations.putAll(annotations.map()); return new NamedType(name, type, newAnnotations); }
@Override public NamedType replaceAnnotations(Annotations annotations) { return new NamedType(name, type, annotations.map()); }