boolean (NewVirtualFile file) { if (file.isDirectory() || file.is(VFileProperty.SPECIAL)) { return true; } try { try (InputStream stream = PersistentFS.getInstance().getInputStream(file)) { // check if it's really cached in VFS if (!(stream instanceof DataInputStream)) return true; byte[] bytes = FileUtil.loadBytes(stream); totalSize.addAndGet(bytes.length); count.incrementAndGet(); ProgressManager.getInstance().getProgressIndicator().setText(file.getPresentableUrl()); } } catch (IOException e) { LOG.error(e); } return true; }