private void selectElementInLeftTree(PsiElement elt) {
    var pointer = SmartPointerManager.createPointer(elt);
    PsiManager manager = PsiManager.getInstance(myProject);
    TreeUtil.promiseSelect(myLeftTree, path -> {
      var object = path.getLastPathComponent();
      PsiElement element = pointer.getElement();
      if (element == null) {
        return TreeVisitor.Action.SKIP_SIBLINGS;
      }
      else if (object instanceof PackageDependenciesNode pNode && manager.areElementsEquivalent(pNode.getPsiElement(), element)) {
          return TreeVisitor.Action.INTERRUPT;
      }
      else {
        return TreeVisitor.Action.CONTINUE;
      }
    });
  }
private void selectElementInLeftTree(PsiElement elt)