FullValueEvaluationCallbackImpl (@NotNull TextViewer textViewer, @NotNull XFullValueEvaluator evaluator, @Nullable Runnable afterFullValueEvaluation) { FullValueEvaluationCallbackImpl callback = new FullValueEvaluationCallbackImpl(textViewer) { @Override public void evaluated(@NotNull String fullValue) { super.evaluated(fullValue); AppUIUtil.invokeOnEdt(() -> { if (afterFullValueEvaluation != null) { afterFullValueEvaluation.run(); } }); } }; evaluator.startEvaluation(callback); return callback; }