void (int index) { if (index < 0 || myListModel.isMoreElement(index)) return; if (Registry.is("search.everywhere.show.weights")) { @NlsSafe String weight = Integer.toString(myListModel.getWeightAt(index)); ActionMenu.showDescriptionInStatusBar(true, myResultsList, weight); return; } if (UISettings.getInstance().getShowStatusBar()) { SearchEverywhereContributor<Object> contributor = myListModel.getContributorForIndex(index); Object element = myListModel.getElementAt(index); ReadAction.nonBlocking(() -> { //noinspection ConstantConditions return contributor.getItemDescription(element); }) .expireWith(this) .coalesceBy(this) .finishOnUiThread(ModalityState.any(), (@NlsSafe var data) -> { if (data != null) { ActionMenu.showDescriptionInStatusBar(true, myResultsList, data); } }) .submit(AppExecutorUtil.getAppExecutorService()); } }