void (@NotNull IntList directoryIdsToRefresh) { if (!directoryIdsToRefresh.isEmpty()) { try { List<NewVirtualFile> directoriesToRefresh = directoryIdsToRefresh.intStream() .mapToObj(dirId -> { try { return findFileById(dirId); } catch (Throwable t) { LOG.info("Directory to refresh [#" + dirId + "] can't be resolved", t); return null; } }) .filter(Objects::nonNull) .toList(); RefreshQueue.getInstance().refresh(false, false, null, directoriesToRefresh); } catch (Throwable t) { LOG.warn("Can't refresh recovered directories: " + directoryIdsToRefresh, t); } } }