Runnable (@NotNull XValue value, @Nullable XFullValueEvaluator evaluator) { if (value instanceof XValueTextProvider && ((XValueTextProvider)value).shouldShowTextValue()) { @NotNull String initialText = StringUtil.notNullize(((XValueTextProvider)value).getValueText()); return () -> showTextPopup(getTreeCreator(), Pair.create(value, myValueName), initialText, evaluator); } return () -> showTree(value); }