@Override
  public Artifact getArtifact() {
    AtomicReference<Artifact> artifact = myArtifact;
    if (artifact == null) {
      // benign race
      myArtifact = artifact = new AtomicReference<>(getInstance(myProject).findArtifact(myName));
    }
    return artifact.get();
  }
@Override
  public Artifact getArtifact()