final String type2Text = type2.getCanonicalText();
return type1Text.equals(type2Text);
}
public static boolean methodMatches(@NotNull Pair<PsiMethod, PsiSubstitutor> firstPair, @NotNull Pair<PsiMethod, PsiSubstitutor> secondPair) {
final PsiMethod firstMethod = firstPair.getFirst();
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();