private SourceCodeChange extractParameterChange(Insert insert) {
SourceCodeChange result = null;
if (insert.getChangedEntity().getType() == JavaEntityType.PARAMETER) {
// SingleVariableDeclaration has changed, but the type node (child)
// remains the same => PARAMETER_RENAMING
Move mov =
findMoveOperation(
insert.getRootEntity().getType(),
insert.getRootEntity().getUniqueName(),
JavaEntityType.PARAMETER,
null,
JavaEntityType.PARAMETER,
insert.getChangedEntity().getUniqueName(),
null,
null);
Delete del =
findDeleteOperation(
insert.getRootEntity().getType(),
insert.getRootEntity().getUniqueName(),
JavaEntityType.PARAMETERS,
"",
JavaEntityType.PARAMETER,
insert.getChangedEntity().getUniqueName());
// parameter renaming
if (mov != null) {
Delete d =
findDeleteOperation(
insert.getRootEntity().getType(),
insert.getRootEntity().getUniqueName(),
JavaEntityType.PARAMETERS,
"",
JavaEntityType.PARAMETER,
mov.getParentEntity().getUniqueName());
if (d == null) {
insert.setChangeType(ChangeType.PARAMETER_INSERT);
result = insert;
} else {
result =