private void selectElement(@NotNull PsiElement element) {
    ReadAction
      .nonBlocking(() -> getElementToChooseInPsiTree(element))
      .finishOnUiThread(ModalityState.nonModal(), elementToChoose -> {
        myStructureTreeModel.select(elementToChoose, myPsiTree, path -> {});
      })
      .expireWith(getDisposable())
      .submit(AppExecutorUtil.getAppExecutorService());
  }
private void selectElement(@NotNull PsiElement element)