void () { ApplicationManager.getApplication().executeOnPooledThread(() -> { try { List<String> installedPackages = ContainerUtil.map(myController.getInstalledPackagesList(), InstalledPackage::getName); UIUtil.invokeLaterIfNeeded(() -> { myInstalledPackages.clear(); myInstalledPackages.addAll(installedPackages); }); } catch (ExecutionException e) { LOG.info("Error updating list of installed packages", e); } }); }