@Override
      public void artifactChanged(@NotNull Artifact artifact, @NotNull String oldName) {
        myLock.lock();
        try {
          if (!oldName.equals(artifact.getName())) {
            ArtifactPointerImpl artifactPointer = myNameToPointers.remove(oldName);
            if (artifactPointer != null) {
              Artifact artifactFromPointer = artifactPointer.getArtifactNoResolve();
              LOG.assertTrue(artifactFromPointer == null || artifactFromPointer.equals(artifact));
              String newName = artifact.getName();
              artifactPointer.setName(newName);
              myNameToPointers.put(newName, artifactPointer);
            }
          }
        }
        finally {
          myLock.unlock();
        }
      }
@Override
      public void artifactChanged(@NotNull Artifact artifact, @NotNull String oldName)