ComponentPopupBuilder (@NotNull JComponent popupContent, @NotNull TextViewer textViewer, @NotNull XFullValueEvaluator evaluator, @NotNull Project project, @Nullable Runnable afterFullValueEvaluation, @Nullable Runnable hideRunnable) { final @NotNull FullValueEvaluationCallbackImpl callback = startEvaluation(textViewer, evaluator, afterFullValueEvaluation); Runnable cancelCallback = () -> { callback.setObsolete(); if (hideRunnable != null) { hideRunnable.run(); } }; return createCancelablePopupBuilder(project, popupContent, textViewer, cancelCallback, null); }