public static @Nullable String getDefaultArtifactOutputPath(@NotNull String artifactName, @NotNull Project project) {
    CompilerProjectExtension extension = CompilerProjectExtension.getInstance(project);
    if (extension == null) {
      return null;
    }

    String outputUrl = extension.getCompilerOutputUrl();
    if (outputUrl == null || outputUrl.isEmpty()) {
      String baseDir = project.getBasePath();
      if (baseDir == null) {
        return null;
      }
      outputUrl = VirtualFileManager.constructUrl(URLUtil.FILE_PROTOCOL, baseDir) + "/out";
    }
    return VfsUtilCore.urlToPath(outputUrl) + "/artifacts/" + FileUtil.sanitizeFileName(artifactName);
  }
public static @Nullable String getDefaultArtifactOutputPath(@NotNull String artifactName, @NotNull Project project)