code: public final void addArtifact(@NotNull final Artifact artifact) {
          Contract.requireArgNotNull("artifact", artifact);
          if (artifacts == null) {
              artifacts = new ArrayList<>();
          }
          artifacts.add(artifact);
      }
docs: Adds a artifact to the list. If the list does not exist it's created.
  
  @param artifact
  Artifact to add.