private static @Nullable FileCollectionDependency resolveSourceSetOutputDirsRuntimeFileDependency(
    @NotNull SourceSetOutput sourceSetOutput
  ) {
    List<File> runtimeOutputDirs = new ArrayList<>(sourceSetOutput.getDirs().getFiles());
    if (!runtimeOutputDirs.isEmpty()) {
      DefaultFileCollectionDependency dependency = new DefaultFileCollectionDependency(runtimeOutputDirs);
      dependency.setScope(RUNTIME_SCOPE);
      dependency.setExcludedFromIndexing(true);
      return dependency;
    }
    return null;
  }
private static @Nullable FileCollectionDependency resolveSourceSetOutputDirsRuntimeFileDependency(
    @NotNull SourceSetOutput sourceSetOutput
  )