public static ArrayList<PlatformAnnotation> allAnnotations(Thing thing) { ArrayList<PlatformAnnotation> result = new ArrayList<PlatformAnnotation>(); for (Thing t : allThingFragments(thing)) { result.addAll(t.getAnnotations()); } return result; }