void () { LOG.info("Running clean-up asynchronously..."); Path pluginTemp = Path.of(PathManager.getPluginTempPath()); try (Stream<Path> stream = Files.list(pluginTemp)) { List<Path> files = stream.filter(file -> file.getFileName().toString().startsWith(getPrefix())).collect(Collectors.toList()); if (!files.isEmpty()) { EXECUTOR_SERVICE.execute(() -> files.forEach(JpsCachesLoaderUtil::delete)); } } catch (IOException e) { LOG.warn("Unable to run clean-up task: " + e.getMessage()); } }