Returns the traits implemented by this node.
Set<Type> get $traits => _traits ??= cursed.$class.superinterfaces .where((i) => i.superinterfaces.any((j) => j.reflectedType == Trait)) .map((i) => i.reflectedType) .toSet();