private static Collection<VirtualFile> convertFileSet(@NotNull Collection<File> fileSet){
  Collection<VirtualFile> result=Lists.newArrayListWithCapacity(fileSet.size());
  LocalFileSystem fileSystem=LocalFileSystem.getInstance();
  for (  File file : fileSet) {
    VirtualFile virtualFile=fileSystem.findFileByIoFile(file);
    if (virtualFile != null) {
      result.add(virtualFile);
    }
  }
  return result;
}

private static Collection < VirtualFile > convertFileSet ( @ NotNull Collection < File > fileSet ) { Collection < VirtualFile > result = Lists . newArrayListWithCapacity ( fileSet . size ( ) ) ; LocalFileSystem fileSystem = LocalFileSystem . getInstance ( ) ; for ( File file : fileSet ) { VirtualFile virtualFile = fileSystem . findFileByIoFile ( file ) ; if ( virtualFile != null ) { result . add ( virtualFile ) ; } } return result ; }
convert a set of io files into a set of equivalent virtual files
