find the class relationship of methods