void (@NotNull String packageName, CatchingConsumer<? super @Nls String, ? super Exception> consumer) { PyPIPackageUtil.INSTANCE.fillPackageDetails(packageName, new CatchingConsumer<>() { @Override public void consume(PackageDetails.Info details) { consumer.consume(formatPackageInfo(details)); } @Override public void consume(Exception e) { consumer.consume(e); } }); }