ModuleDeclaration rootNode = SourceParserUtil
.getModuleDeclaration(method.getSourceModule());
MethodDeclaration methodDeclaration = PHPModelUtils
.getNodeByMethod(rootNode, method);
if (methodDeclaration != null) {
methodDeclaration.traverse(new ASTVisitor() {
public boolean visit(Statement s) throws Exception {
if (s instanceof GlobalStatement) {
GlobalStatement globalStatement = (GlobalStatement) s;
for (Expression e : globalStatement.getVariables()) {
if (e instanceof VariableReference) {