VariableContext () { return new SimpleVariableContext() { @Override public String @NotNull [] getVariablesInScope(XPathElement element) { final int size = myVariables.size(); final ArrayList<String> vars = new ArrayList<>(size); for (Debugger.Variable myVariable : myVariables) { vars.add(myVariable.getName()); } return ArrayUtilRt.toStringArray(vars); } }; }