public void loadState(@NotNull State state) {
    if (!state.projectBuildClasspath.isEmpty()) {
      saveProjectBuildClasspathWorkspaceEntity(myProject, state.projectBuildClasspath);
    }
    state.projectBuildClasspath = Collections.emptyMap();
    //noinspection unchecked
    this.state = (S)state;
    pruneOutdatedEntries();
  }
public void loadState(@NotNull State state)