void () { if (mySearchField == null) return; List<SearchEverywhereContributor<?>> contributors = myHeader.getSelectedTab().getContributors(); String advertisementText = getWarning(contributors); if (advertisementText != null) { myHintHelper.setWarning(advertisementText); updateRightActions(contributors); return; } advertisementText = getAdvertisement(contributors); myHintHelper.setHint(advertisementText); updateRightActions(contributors); }