void (@NotNull final Sdk sdk) { if (sdk.getSdkType() instanceof PythonSdkType) { ApplicationManager.getApplication().invokeLater(() -> ApplicationManager.getApplication().runWriteAction(() -> { addLibrary(sdk); })); } }