@NotNull
  @ApiStatus.Internal
  public MavenProjectChanges updateState(@NotNull MavenModel model,
                                         @Nullable String dependencyHash,
                                         @NotNull Collection<@NotNull MavenProjectProblem> readingProblems,
                                         @NotNull MavenExplicitProfiles activatedProfiles,
                                         @NotNull Set<MavenId> unresolvedArtifactIds,
                                         @NotNull Map<@NotNull String, @Nullable String> nativeModelMap,
                                         @NotNull MavenGeneralSettings settings,
                                         boolean keepPreviousArtifacts,
                                         boolean keepPreviousPlugins) {
    State newState = myState.clone();

    if (null != dependencyHash) {
      newState.myDependencyHash = dependencyHash;
    }

    doUpdateState(newState,
                  model,
                  readingProblems,
                  activatedProfiles,
                  unresolvedArtifactIds,
                  nativeModelMap,
                  settings,
                  keepPreviousArtifacts,
                  true,
                  keepPreviousPlugins
    );

    return setState(newState);
  }
@NotNull
  @ApiStatus.Internal
  public MavenProjectChanges updateState(@NotNull MavenModel model,
                                         @Nullable String dependencyHash,
                                         @NotNull Collection<@NotNull MavenProjectProblem> readingProblems,
                                         @NotNull MavenExplicitProfiles activatedProfiles,
                                         @NotNull Set<MavenId> unresolvedArtifactIds,
                                         @NotNull Map<@NotNull String, @Nullable String> nativeModelMap,
                                         @NotNull MavenGeneralSettings settings,
                                         boolean keepPreviousArtifacts,
                                         boolean keepPreviousPlugins)