void (PsiMethod method) { oldParameterNames = DetectedJavaChangeInfo.this.getOldParameterNames(); oldParameterTypes = DetectedJavaChangeInfo.this.getOldParameterTypes(); if (!method.isConstructor()) { try { isReturnTypeChanged = isReturnTypeChanged || (DetectedJavaChangeInfo.this.getNewReturnType() != null ? !Comparing.strEqual(DetectedJavaChangeInfo.this.getNewReturnType().getTypeText(), newReturnType.getTypeText()) : newReturnType != null); } catch (IncorrectOperationException e) { isReturnTypeChanged = true; } } for (int i = 0, length = Math.min(newParms.length, oldParameterNames.length); i < length; i++) { ParameterInfoImpl parm = newParms[i]; if (parm.getName().equals(oldParameterNames[i]) && parm.getTypeText().equals(oldParameterTypes[i])) { parm.oldParameterIndex = i; } } }