boolean isExpanded(@Nullable TreePath path) {
      if (path == null) {
        return false;
      }
      do {
        var value = expandedState.get(path);
        if (value == null || !value.booleanValue())
          return false;
      } while ((path = path.getParentPath()) != null);
      return true;
    }
boolean isExpanded(@Nullable TreePath path)