@Nullable
  private static DataNode<? extends ExternalEntityData> createDependencyDataNode(FileCollectionDependency fileCollectionDependency,
                                                                                 @NotNull DataNode<? extends ExternalEntityData> ownerDataNode,
                                                                                 AtomicInteger classpathOrderShift) {
    final ModuleData ownerModule = getOwnerModule(ownerDataNode);
    DependencyScope dependencyScope = getDependencyScope(fileCollectionDependency.getScope());

    final LibraryLevel level = LibraryLevel.MODULE;
    String libraryName = "";
    final LibraryData library = new LibraryData(GradleConstants.SYSTEM_ID, libraryName);
    LibraryDependencyData libraryDependencyData = new LibraryDependencyData(ownerModule, library, level);
    libraryDependencyData.setScope(dependencyScope);
    libraryDependencyData.setOrder(fileCollectionDependency.getClasspathOrder() + classpathOrderShift.get());
    libraryDependencyData.setExported(fileCollectionDependency.getExported());

    for (File file : fileCollectionDependency.getFiles()) {
      library.addPath(LibraryPathType.BINARY, file.getPath());
      if (fileCollectionDependency instanceof DefaultFileCollectionDependency defaultFCDep &&
          defaultFCDep.isExcludedFromIndexing()) {
        library.addPath(LibraryPathType.EXCLUDED, file.getPath());
      }
    }

    ownerDataNode.createChild(ProjectKeys.LIBRARY_DEPENDENCY, libraryDependencyData);
    return null;
  }
@Nullable
  private static DataNode<? extends ExternalEntityData> createDependencyDataNode(FileCollectionDependency fileCollectionDependency,
                                                                                 @NotNull DataNode<? extends ExternalEntityData> ownerDataNode,
                                                                                 AtomicInteger classpathOrderShift)