void (@NotNull JButton button) { FindResult cursor = mySearchResults.getCursor(); button.setEnabled(cursor != null); button.setText(cursor != null && mySearchResults.isExcluded(cursor) ? FindBundle.message("button.include") : FindBundle.message("button.exclude")); }