public function nonGenericArrayTypes() : UnionType { return new UnionType($this->type_set->filter(function (Type $type) : bool { return !$type->isGenericArray(); })); }