void (@NotNull Sdk sdk) { if (PlatformUtils.isFleetBackend()) return; final WeakReference<Component> ownerComponentRef = sdk.getUserData(SDK_CREATOR_COMPONENT_KEY); final Component ownerComponent = SoftReference.dereference(ownerComponentRef); AtomicReference<Project> projectRef = new AtomicReference<>(); ApplicationManager.getApplication().invokeAndWait(() -> { if (ownerComponent != null) { projectRef.set(CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(ownerComponent))); } else { projectRef.set(CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext())); } }); PythonSdkUpdater.updateOrShowError(sdk, projectRef.get(), ownerComponent); }