You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: decorator_handler_methods.rb
    path of file: ./repos/yard/lib/yard/handlers/ruby
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
# Helper methods to assist with processing decorators.
module YARD::Handlers::Ruby::DecoratorHandlerMethods
  # @overload process_decorator(*nodes, opts = {}, &block)
  #   Takes care of parsing method definitions passed to decorators
  #   as parameters, as well as parsing chained decorators.
  #
  #   Use this in a handler's process block.
  #
  #   @yieldparam met
    
  def process_decorator(*nodes, &block)
    opts = nodes.last.is_a?(Hash) ? nodes.pop : {}

    all_nodes = statement.parameters.select do |p|
      p.is_a? YARD::Parser::Ruby::AstNode
    end

    # Parse decorator parameters (decorator chain).
    all_nodes.each do |param|
      parse_block param if param.call? || param.def?
    end

    selected_nodes =
      if nodes.empty?
        all_nodes
      elsif nodes.count == 1 && nodes.first.nil?
        []
      else
        nodes
      end