code: private static boolean compareAnnotated(Annotated a1, Annotated a2) {
          return a1.getAnnotations().equals(a2.getAnnotations());
      }
docs: compares two annotated elements to see if they have the same annotations
  
  @param a1
  @param a2
  @return