void (@NotNull AnActionEvent e) { Sdk sdk = getEditableSelectedSdk(); if (sdk == null) return; final PythonPathEditor pathEditor = createPathEditor(sdk); final SdkModificator sdkModificator = sdk.getSdkModificator(); PythonPathDialog dialog = new PythonPathDialog(myProject, pathEditor); pathEditor.reset(sdkModificator); if (dialog.showAndGet()) { if (pathEditor.isModified()) { pathEditor.apply(sdkModificator); commitAndRefresh(sdkModificator); reloadSdk(sdk); } } updateOkButton(); }