public ImportSpec build() {
    ImportSpecImpl mySpec = new ImportSpecImpl(myProject, myExternalSystemId);
    mySpec.setProgressExecutionMode(myProgressExecutionMode);
    mySpec.setCreateDirectoriesForEmptyContentRoots(myCreateDirectoriesForEmptyContentRoots);
    mySpec.setPreviewMode(isPreviewMode);
    mySpec.setActivateBuildToolWindowOnStart(isActivateBuildToolWindowOnStart);
    mySpec.setActivateBuildToolWindowOnFailure(isActivateBuildToolWindowOnFailure);
    mySpec.setNavigateToError(isNavigateToError);
    mySpec.setArguments(myArguments);
    mySpec.setVmOptions(myVmOptions);
    mySpec.setProjectResolverPolicy(myProjectResolverPolicy);
    ExternalProjectRefreshCallback callback;
    if (myCallback != null) {
      callback = myCallback;
    }
    else if (myProjectResolverPolicy == null || !myProjectResolverPolicy.isPartialDataResolveAllowed()) {
      callback = new DefaultProjectRefreshCallback(mySpec);
    }
    else {
      callback = null;
    }
    mySpec.setCallback(callback);
    return mySpec;
  }
public ImportSpec build()