void (Object object) { ReadAction.nonBlocking(() -> { final PsiElement element = myViewExtension.getElementToSelect(object); final VirtualFile file = myViewExtension.getVirtualFile(object); return getNode(element, file); }) .finishOnUiThread(ModalityState.nonModal(), (node) -> myModel.makeVisible(node, this::selectPath)) .submit(AppExecutorUtil.getAppExecutorService()); }