ParameterElementImpl parameterImpl = (ParameterElementImpl) element;
parameterImpl.markPotentiallyMutatedInScope();
// If we are in some closure, check if it is not the same as where variable is declared.
if (enclosingFunction != null
&& !ObjectUtilities.equals(element.getEnclosingElement(), enclosingFunction)) {
parameterImpl.markPotentiallyMutatedInClosure();
}
}
}
return null;
}