public Void visitDeclaredIdentifier(DeclaredIdentifier node) {
SimpleIdentifier variableName = node.getIdentifier();
Token keyword = node.getKeyword();
LocalVariableElementImpl element = new LocalVariableElementImpl(variableName);
ForEachStatement statement = (ForEachStatement) node.getParent();
int declarationEnd = node.getOffset() + node.getLength();
int statementEnd = statement.getOffset() + statement.getLength();
element.setVisibleRange(declarationEnd, statementEnd - declarationEnd - 1);
element.setConst(matches(keyword, Keyword.CONST));
element.setFinal(matches(keyword, Keyword.FINAL));
currentHolder.addLocalVariable(element);