}
} else if (kind == ElementKind.PARAMETER) {
node.setStaticElement(element);
if (node.inSetterContext()) {
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();
}