private @Nullable DefaultMutableTreeNode getNodeForPath(String path) {
    Enumeration<TreeNode> enumeration = ((DefaultMutableTreeNode)myTree.getModel().getRoot()).preorderEnumeration();
    while (enumeration.hasMoreElements()) {
      DefaultMutableTreeNode node = (DefaultMutableTreeNode)enumeration.nextElement();
      if (Objects.equals(getPath(node, false), path)) {
        return node;
      }
    }
    return null;
  }
private @Nullable DefaultMutableTreeNode getNodeForPath(String path)