void (@NotNull DataContext dataContext) { Object value = myResultsList.getSelectedValue(); if (value instanceof RunAnythingItem) { RunAnythingProvider provider = RunAnythingProvider.findMatchedProvider(dataContext, ((RunAnythingItem)value).getCommand()); if (provider != null) { String adText = provider.getAdText(); if (adText != null) { setAdText(adText); } } } }