void (@NotNull InstalledPackage pkg, @NotNull CatchingConsumer<? super String, ? super Exception> consumer) { myExecutorService.execute(() -> { if (myProject.isDisposed()) return; try { PyPIPackageUtil.INSTANCE.loadPackages(); final String version = PyPIPackageUtil.INSTANCE.fetchLatestPackageVersion(myProject, pkg.getName()); consumer.consume(StringUtil.notNullize(version)); } catch (IOException e) { consumer.consume(e); } }); }