List<VirtualFile> (List<File> files) { List<VirtualFile> result = new ArrayList<>(); for (File each : files) { VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(each); if (virtualFile != null) result.add(virtualFile); } return result; }