class RubyLsp::TypeInferrer::Type

def attached

: -> Type
Returns the attached version of this type by removing the `` part from its name
def attached
  Type.new(
    @name.split("::")[..-2] #: as !nil
    .join("::"),
  )
end