private List<MethodDeclaration> findAllConstructors(final ASTNode typeNode) {
    // Find all constructors.
    final List<MethodDeclaration> constructors =
        new ArrayList<MethodDeclaration>();
    ASTVisitor visitor = new ASTVisitor() {
      @Override
      public boolean visit(MethodDeclaration node) {
        if (!node.isConstructor()) {
          return false;
        }
        constructors.add(node);
        return false;
      }
      
      @Override
      public boolean visit(TypeDeclaration node) {
        return node == typeNode;
      }
      
    };
    typeNode.accept(visitor);

    return constructors;
  }