I want to check if two PsiMethods I have are the same (name and signature) or not.
I can do a psimethod1.getName().equals(psimethod2.getName()) for checking the name.
For getting the signature , psiMethod.getSignature(PsiSubstitutor) requires a PsiSubstitutor. I have no control over the signatures of the PsiMethods to be compared so what kind of PsiSubstitutor should I pass.
How to compare the two MethodSignatures returned?
Also is there any better way to achieve this comparison?