def visit(ast_node, parent)
      klass = TYPES[ast_node.type] || return
      klass.new.build_from_ast(ast_node).tap do |node|
        parent.children << node
      end
    end
def visit(ast_node, parent)
      klass = TYPES[ast_node.type] || return
      klass.new.build_from_ast(ast_node).tap do |node|
        parent.children << node
      end
    end
This method reeks of :reek:UtilityFunction