public static @NotNull Map<String, List<Artifact>> createOutputToArtifactMap(@NotNull Project project) {
    Map<String, List<Artifact>> result = CollectionFactory.createFilePathMap();
    ReadAction.run(() -> {
      for (Artifact artifact : ArtifactManager.getInstance(project).getArtifacts()) {
        String outputPath = artifact.getOutputFilePath();
        if (!StringUtil.isEmpty(outputPath)) {
          result.computeIfAbsent(outputPath, __ -> new SmartList<>()).add(artifact);
        }
      }
    });
    return result;
  }
public static @NotNull Map<String, List<Artifact>> createOutputToArtifactMap(@NotNull Project project)