void OnPreconditionRemoved(GOAPState _condition)
 {
     if (ConditionElements.TryGetValue(_condition, out VisualElement e))
     {
         conditionFoldout.Remove(e);
         ConditionElements.Remove(_condition);
     }
 }
 void OnEffectRemoved(GOAPState _newEffect)
 {
     if (EffectElements.TryGetValue(_newEffect, out VisualElement e))
     {
         effectFoldout.Remove(e);
         EffectElements.Remove(_newEffect);
     }
 }
 private void RemoveVisualElementFromFoldout(VisualElement visualElement, Foldout foldout)
 {
     foldout.Remove(visualElement);
 }