Animator/Behaviour I want to get all the transitions of a state

Hello, im using the animator + behaviour scripts to handle AI, the states represent the current task that's being executed, and in the case of a check, say, finding the player while patroling, i would like to transition to a diferent state, for this i know i can use the Animator.CrossFade() function, however it requires a name, and i can put the name manually on the script, but it would be more comfortable to simply look at all the transitions of a state and pick acordingly, like first state is true second is false. So is there a way i can get all the transitions of the current state or at least the names of the next posible states?