void (@NotNull String expression, @NotNull XEvaluationCallback callback, @Nullable XSourcePosition expressionPosition) { try { final Value eval = myFrame.eval(expression); callback.evaluated(new MyValue(new ExpressionResult(eval))); } catch (VMPausedException ignored) { callback.errorOccurred(XsltDebuggerBundle.message("dialog.message.target.vm.not.responding")); } catch (Debugger.EvaluationException e) { callback.errorOccurred(e.getMessage() != null ? e.getMessage() : e.toString()); } }