@Override
  public void setBuildBeforeRunTask(@NotNull RunConfiguration configuration,
                                    @NotNull ArtifactDeploymentSource source) {
    Artifact artifact = source.getArtifact();
    if (artifact != null) {
      BuildArtifactsBeforeRunTaskProvider.setBuildArtifactBeforeRun(configuration.getProject(), configuration, artifact);
    }
  }
@Override
  public void setBuildBeforeRunTask(@NotNull RunConfiguration configuration,
                                    @NotNull ArtifactDeploymentSource source)