public static @Nullable List<File> asFileList(PsiElement[] elements) {
    List<File> result = new ArrayList<>();
    for (PsiElement element : elements) {
      VirtualFile vFile = asVirtualFile(element);
      if (vFile != null && vFile.getFileSystem() instanceof LocalFileSystem) {
        result.add(new File(vFile.getPath()));
      }
    }
    return result.isEmpty() ? null : result;
  }
public static @Nullable List<File> asFileList(PsiElement[] elements)