@Override
public Void visitCatchClause(CatchClause node) {
SimpleIdentifier exceptionParameter = node.getExceptionParameter();
if (exceptionParameter != null) {
LocalVariableElement[] localVariables = enclosingExecutable.getLocalVariables();
LocalVariableElement exceptionElement = findIdentifier(localVariables, exceptionParameter);
processElement(exceptionElement);
SimpleIdentifier stackTraceParameter = node.getStackTraceParameter();
if (stackTraceParameter != null) {
LocalVariableElement stackTraceElement = findIdentifier(localVariables, stackTraceParameter);
processElement(stackTraceElement);
}
}
return super.visitCatchClause(node);
}