boolean (@Nullable MethodSignature method1, @Nullable MethodSignature method2) { return method1 == method2 || (method1 != null && method2 != null && areSignaturesEqualLightweight(method1, method2) && areErasedParametersEqual(method1, method2)); }