Replace ConcurrentSkipListSet -> HashSet
Also detect sequenceFlows