private static boolean areFiles(VirtualFile @NotNull [] files) {
    if (files.length < 2) {
      return false;
    }

    for (VirtualFile file : files) {
      if (file.isDirectory()) {
        return false;
      }
    }

    return true;
  }
private static boolean areFiles(VirtualFile @NotNull [] files)