code: private static void popAnnotations(Deque<GraphAnnotationState> stack) {
      for (AnnotationState as : stack.pop()) {
        as.first.setAnnotation(as.second);
      }
    }
docs: Restores the node annotations on the top of stack and pops stack.