PyDebugCallback<String> () { return new PyDebugCallback<>() { @Override public void ok(String value) { myLoadValuePolicy = ValuesPolicy.SYNC; myValue = value; for (XValueNode node : myValueNodes) { if (node != null && !node.isObsolete()) { updateNodeValueAfterLoading(node, value, "", null); } } } @Override public void error(PyDebuggerException exception) { LOG.error(exception.getMessage()); } }; }