private void setSdkAssociated(SdkModificator modificator, boolean isAssociated) {
    PythonSdkAdditionalData additionalData = (PythonSdkAdditionalData)modificator.getSdkAdditionalData();
    if (additionalData == null) {
      additionalData = new PythonSdkAdditionalData(PythonSdkFlavor.getFlavor(modificator.getHomePath()));
      modificator.setSdkAdditionalData(additionalData);
    }
    if (isAssociated && myModule != null) {
      additionalData.associateWithModule(myModule);
    }
    else if (isAssociated) {
      additionalData.setAssociatedModulePath(myProject.getBasePath());
    }
    else {
      additionalData.resetAssociatedModulePath();
    }
  }
private void setSdkAssociated(SdkModificator modificator, boolean isAssociated)