public void addDependencies(@NotNull Collection<MavenArtifact> dependencies) {
    updateState(newState -> newState.myDependencies.addAll(dependencies));
  }
public void addDependencies(@NotNull Collection<MavenArtifact> dependencies)