void (@NotNull Sdk sdk, @Nullable Project project, @Nullable Component ownerComponent) { boolean versionAndPathsUpdated = updateVersionAndPathsSynchronouslyAndScheduleRemaining(sdk, project); if (!versionAndPathsUpdated) { ApplicationManager.getApplication().invokeLater( () -> Messages.showErrorDialog( project, PyBundle.message("python.sdk.cannot.setup.sdk", getSdkPresentableName(sdk)), PyBundle.message("python.sdk.invalid.python.sdk") ) ); } }