boolean (PsiParameterList parameterList, PsiParameterList otherParameterList) { final PsiParameter[] parameters = parameterList.getParameters(); final PsiParameter[] otherParameters = otherParameterList.getParameters(); for (int i = 0; i < parameters.length; i++) { final PsiType type = parameters[i].getType(); final PsiType otherType = otherParameters[i].getType(); if (!type.isAssignableFrom(otherType) && !otherType.isAssignableFrom(type)) { return false; } } return true; }