public boolean endvisit(AnonymousClassDeclaration anonymousClassDeclaration) throws Exception {
    this.fInClass = false;

    if (!fNodes.isEmpty() && fNodes.peek() == anonymousClassDeclaration) {
      fRequestor.exitType(anonymousClassDeclaration.sourceEnd() - 1);
      fInfoStack.pop();
      fNodes.pop();
    }

    declarations.pop();

    for (PHPSourceElementRequestorExtension visitor : extensions) {
      visitor.endvisit(anonymousClassDeclaration);
    }
    return true;
  }