[fix] Fix the Method equals method

Two methods are equal when the line and the qualified name of the method
are the same