private void selectElementInTree(@NotNull PsiElement element) {
    ApplicationManager.getApplication().invokeLater(() -> {
      if (myModel != null) {
        myModel.select(element, myTree, path -> {
        });
      }
    }, getModalityState());
  }
private void selectElementInTree(@NotNull PsiElement element)