static boolean containsOnlyFiles(VirtualFile @NotNull [] files) {
    if (files.length < 1) return false;
    for (VirtualFile virtualFile : files) {
      if (virtualFile.isDirectory()) return false;
    }
    return true;
  }
static boolean containsOnlyFiles(VirtualFile @NotNull [] files)