final PsiMethod secondMethod = secondPair.getFirst();
if (!firstMethod.getName().equals(secondMethod.getName())) {
return false;
}
PsiParameterList firstMethodParameterList = firstMethod.getParameterList();
PsiParameterList secondMethodParameterList = secondMethod.getParameterList();
if (firstMethodParameterList.getParametersCount() != secondMethodParameterList.getParametersCount()) {
return false;
}
PsiParameter[] firstMethodParameterListParameters = firstMethodParameterList.getParameters();
PsiParameter[] secondMethodParameterListParameters = secondMethodParameterList.getParameters();
PsiSubstitutor firstSubstitutor = firstPair.getSecond();
PsiSubstitutor secondSubstitutor = secondPair.getSecond();
final PsiType nullType = PsiPrimitiveTypeFactory.getInstance().getNullType();
for (int i = 0; i < firstMethodParameterListParameters.length; i++) {
PsiType firstMethodParameterListParameterType = firstSubstitutor.substitute(firstMethodParameterListParameters[i].getType());