Reverse engineer sequence diagrams