module T::Utils::Nilable

def self.is_union_with_nilclass(prop_type)

def self.is_union_with_nilclass(prop_type)
  case prop_type
  when T::Types::Union
    prop_type.types.include?(NIL_TYPE)
  else
    false
  end
end