void (@NotNull DisplayedTypeInfo typeInfo, boolean isAdvanced) { Callable<@Nls String> getHintAction = () -> typeInfo.getHintText(isAdvanced); ReadAction.nonBlocking(getHintAction) .finishOnUiThread(ModalityState.any(), hint -> { HintManager.getInstance().setRequestFocusForNextHint(myRequestFocus); typeInfo.showHint(hint); }) .submit(AppExecutorUtil.getAppExecutorService()); }