void () { if (myComponent.getSearchTextComponent() instanceof ComponentWithEmptyText) { ComponentWithEmptyText cweText = (ComponentWithEmptyText)myComponent.getSearchTextComponent(); String emptyText = StringUtil.capitalize(getEmptyText()); cweText.getEmptyText().setText(emptyText); } if (ExperimentalUI.isNewUI() && myFindModel.isReplaceState() && myComponent.getReplaceTextComponent() instanceof ComponentWithEmptyText) { ComponentWithEmptyText cweText = (ComponentWithEmptyText)myComponent.getReplaceTextComponent(); String emptyText = myFindModel.getStringToReplace().isEmpty() ? ApplicationBundle.message("editorsearch.replace.hint") : ""; cweText.getEmptyText().setText(emptyText); } }