private void apply() {
    try {
      myProjectSdksModel.apply();
    }
    catch (ConfigurationException e) {
      LOG.error(e);
    }
    myModified = false;
    final Sdk sdk = getOriginalSelectedSdk();
    mySelectedSdkCallback.consume(sdk);
    if (sdk != null) {
      PyPackageManagers.getInstance().clearCache(sdk);
    }
    Disposer.dispose(getDisposable());
  }
private void apply()