String text = editorDocument.getText();
PsiFile file = console.getFile();
final Map<String, ErlangQVar> context = file.getOriginalFile().getUserData(ErlangVarProcessor.ERLANG_VARIABLE_CONTEXT);
if (context != null) { // todo: process only successful statements
file.accept(new ErlangRecursiveVisitor() {
@Override
public void visitQVar(@NotNull ErlangQVar o) {
String name = o.getName();
if (!context.containsKey(name)) context.put(name, o);
}