Corydalus affinis is a species of Dobson fly whose larvae are found in trees.
The larvae (commonly called hellgrammites) are aquatic, living in streams, and the adults are often found along streams as well. 
The larvae of dobsonflies live along the rocky bottoms of streams. 
