MathematicaPatternVisitor patternVisitor = new MathematicaPatternVisitor();
element.accept(patternVisitor);
mySymbols.addAll(patternVisitor.getPatternSymbols());
} else if (element instanceof FunctionCall) {
final FunctionCall functionCall = (FunctionCall) element;
if (functionCall.isScopingConstruct()) {
List<Symbol> vars = Lists.newArrayList();
final LocalizationConstruct.ConstructType scopingConstruct = functionCall.getScopingConstruct();
if (LocalizationConstruct.isFunctionLike(scopingConstruct)) {
vars = MathematicaPsiUtilities.getLocalFunctionVariables(functionCall);
}