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: ui_element.rb
    path of file: ./repos/shoes4/shoes-core/lib/shoes/common
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class Shoes
  module Common
    class UIElement
      include Common::Attachable
      include Common::Inspect
      include Common::Visibility
      include Common::Positioning
      include Common::Remove
      include D
    
      def initialize(app, parent, *args)
        blk    = args.pop if args.last.is_a?(Proc) || args.last.nil?
        styles = args.last.is_a?(Hash) ? args.pop : {}

        before_initialize(styles, *args)

        @app = app
        @parent = parent

        style_init(styles)
        create_dimensions(*args)
        update_dimensions if styles_with_dimensions?

        create_backend
        add_to_parent(*args)

        handle_block(blk)
        update_visibility

        after_initialize(*args)
      end