private void refreshSdkList() {
    final List<Sdk> allPythonSdks = myInterpreterList.getAllPythonSdks(myProject, myModule);
    Sdk projectSdk = getSdk();
    final List<Sdk> notAssociatedWithOtherProjects = StreamEx
      .of(allPythonSdks)
      .filter(sdk -> !PySdkExtKt.isAssociatedWithAnotherModule(sdk, myModule))
      .toList();

    final List<Sdk> pythonSdks = myHideOtherProjectVirtualenvs ? notAssociatedWithOtherProjects : allPythonSdks;
    mySdkList.setModel(new CollectionListModel<>(pythonSdks));

    if (projectSdk != null) {
      projectSdk = myProjectSdksModel.findSdk(projectSdk.getName());
      mySdkList.clearSelection();
      mySdkList.setSelectedValue(projectSdk, true);
      mySdkList.updateUI();
    }
  }
private void refreshSdkList()