Traverse methods to see if static variables are used