assertEquals("Method counts are different for Class: " + beforeClass.getName(), afterMethods.length, beforeMethods.length);
for (PsiMethod afterMethod : afterMethods) {
boolean compared = false;
final PsiModifierList afterModifierList = afterMethod.getModifierList();
for (PsiMethod beforeMethod : beforeMethods) {
if (afterMethod.getName().equals(beforeMethod.getName()) &&
afterMethod.getParameterList().getParametersCount() == beforeMethod.getParameterList().getParametersCount()) {
PsiModifierList beforeModifierList = beforeMethod.getModifierList();
compareModifiers(beforeModifierList, afterModifierList);
compareType(beforeMethod.getReturnType(), afterMethod.getReturnType(), afterMethod);
compareParams(beforeMethod.getParameterList(), afterMethod.getParameterList());
compareThrows(beforeMethod.getThrowsList(), afterMethod.getThrowsList(), afterMethod);