@NotNull
  public <T extends ExternalSystemNode> List<T> getExistingNodes(@NotNull Class<T> nodeClass) {
    return doGetNodes(nodeClass, myRoot.getChildren(), new SmartList<>(), node -> {
      if (node instanceof ExternalSystemNode<?> esNode) {
        ExternalSystemNode<?>[] cachedNodes = esNode.getCached();
        return cachedNodes != null && cachedNodes.length > 0;
      }
      return true;
    });
  }
@NotNull
  public <T extends ExternalSystemNode> List<T> getExistingNodes(@NotNull Class<T> nodeClass)