public static CompileScope createArtifactsScope(@NotNull Project project,
                                                  @NotNull Collection<? extends Artifact> artifacts) {
    return createArtifactsScope(project, artifacts, false);
  }
public static CompileScope createArtifactsScope(@NotNull Project project,
                                                  @NotNull Collection<? extends Artifact> artifacts)