for (AnnotationOption o : p.getAnnotationOptions()) {
if (key.equals(o.key)) {
valueSet.addAll(o.valueAlternatives);
}
}
AnnotationMap inheritedAnnotations = a.inheritedAnnotations();
if (inheritedAnnotations.containsKey(key)) {
valueSet.add(inheritedAnnotations.get(key));
} else {
valueSet.add(null);
}
ArrayList<String> newValues = new ArrayList<String>(valueSet);
AnnotationMap currentAnnotations = a.currentAnnotations();
if (currentAnnotations.containsKey(key)) {
valueSet.add(currentAnnotations.get(key));
} else {
valueSet.add(null);
}
ArrayList<String> oldValues = new ArrayList<String>(valueSet);