code: public static boolean hasAnnotation(AnnotatedNode node, String name) {
          return AstUtil.getAnnotation(node, name) != null;
      }
docs: Return true only if the node has the named annotation
  @param node - the AST Node to check
  @param name - the name of the annotation
  @return true only if the node has the named annotation