void (@NotNull ColoredTreeCellRenderer renderer, boolean isSelected, boolean isActive, @Nullable String forceRenderedText) { if (forceRenderedText != null) { myDestTargetPanel.setText(forceRenderedText); renderer.append(forceRenderedText); return; } String targetText = myDestTargetPanel.getText(); if (StringUtil.isEmptyOrSpaces(targetText)) { renderer.append(HgBundle.message("action.hg4idea.push.enter.remote"), SimpleTextAttributes.GRAY_ITALIC_ATTRIBUTES, myTargetRenderedComponent); } myTargetRenderedComponent.setSelected(isSelected); myTargetRenderedComponent.setTransparent(!isActive); myTargetRenderedComponent.render(renderer); }