public static boolean areSameMethod(Method m1, Method m2) {
		if (!m1.getName().equals(m2.getName())) {
			// NOTE: Could be faster using ==, as does Method#equals(Method)
			return false;
		}
		if (!m1.getReturnType().equals(m2.getReturnType())) {
			// NOTE: Method#equals(Method) does NOT use == for this
			return false;
		}
		if (!Arrays.equals(m1.getParameterTypes(), m2.getParameterTypes())) {
			return false;
		}
		return true;
	}
Check if two methods are the same, ignoring the declaring class.

This returns true if all the following are met: 1) They have the same name, 2) They have the
same return type, and 3) They have the same parameter types.

@param m1 the first method
@param m2 the second method
@return true if they are the same, false otherwise;
Ghidra/Debug/ProposedUtils/src/main/java/utilities/util/ProxyUtilities.java