if (entity != null && entity instanceof FamixMethod) {
gatherVariablesInScope(variables, entity.getParent(), statementBlock);
addVars(variables, new HashSet<AbstractFamixVariable>(((FamixMethod) entity).getParameters()));
for (FamixLocalVariable lLocalVariable : ((FamixMethod) entity).getLocalVariables()) {
// get block surrounding local variable declaration
StatementBlock surroundingBlock = getCrawler().getLocalVariableScope().get(lLocalVariable);
// check if block of statement is contained by that block
if (surroundingBlock != null) {
if ((surroundingBlock.getStart() <= statementBlock.getStart())
&& (surroundingBlock.getEnd() >= statementBlock.getEnd())) {
Set<AbstractFamixVariable> tmpVarList = new HashSet<AbstractFamixVariable>();
tmpVarList.add(lLocalVariable);
addVars(variables, tmpVarList);
}
} else {