private static void refreshVfsFiles(Collection<? extends File> files) {
    VirtualFileManager virtualFileManager = VirtualFileManager.getInstance();
    for (File file : files) {
      Path path = file.toPath();
      // search for jar file first otherwise lib root won't be found!
      if (virtualFileManager.findFileByNioPath(path) == null) {
        virtualFileManager.refreshAndFindFileByNioPath(path);
      }
    }
  }
private static void refreshVfsFiles(Collection<? extends File> files)