public void reset(@Nullable Project project) {
    myProjectSdks.clear();
    ProjectJdkTable jdkTable = ProjectJdkTable.getInstance();
    jdkTable.preconfigure();
    final Sdk[] projectSdks = jdkTable.getAllJdks();
    for (Sdk sdk : projectSdks) {
      try {
        Sdk editable = sdk.clone();
        myProjectSdks.put(sdk, editable);
        SdkDownloadTracker.getInstance().registerEditableSdk(sdk, editable);
      }
      catch (CloneNotSupportedException e) {
        LOG.error(e);
      }
    }
    if (project != null) {
      String sdkName = ProjectRootManager.getInstance(project).getProjectSdkName();
      myProjectSdk = sdkName == null ? null : findSdk(sdkName);
    }
    myModified = false;
    myInitialized = true;
  }
public void reset(@Nullable Project project)