PythonSdkDetailsDialog () { return new PythonSdkDetailsDialog( myProject, myModule, this::onShowAllInterpretersDialogClosed, reset -> { // data is invalidated on `model` resetting so we need to reload sdks to not stuck with outdated ones // do not use `getOriginalSelectedSdk()` here since `model` won't find original sdk for selected item due to resetting if (reset) updateSdkListAndSelect(getEditableSelectedSdk()); } ); }